Separate business logic into small stateless services that can be organized in simple homogeneous pools.
将业务逻辑分散到小的无状态服务中,这些服务可以被放到简单的同构服务池中。
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.
所以只要你坚持并发编程的最简单规则——无状态服务和不变对象,将你的服务绑定到任何生产者或消费者上都会轻而易举。
Stateless services are unaware of transactional state; therefore they cannot be requested to "roll-back" a set of changes if a transaction fails.
无状态的服务意识不到事务状态,因此如果事务失败时,不能请求它们“回滚”一组变更。
Stateless services are unaware of transactional state; therefore they cannot be requested to "roll-back" a set of changes if a transaction fails.
无状态的服务意识不到事务状态,因此如果事务失败时,不能请求它们“回滚”一组变更。
应用推荐