所以只要你坚持并发编程的最简单规则——无状态服务和不变对象,将你的服务绑定到任何生产者或消费者上都会轻而易举。
So as long as you stick to the simplest rules of concurrent programming - stateless services and immutable objects, it will be a breeze to wire your services to any producer or consumer.
设计原则:验证你的代码是否坚持面向对象编程的设计原则。
Design principles: Validates that your code adheres to the design principles of object-oriented programming.
如果有理由确信数据对象将保持唯一,则坚持使用属性。
If you can be reasonably confident that a data object will remain unique, stick with attributes.
应用推荐