与原子流中流管理的持久化相比,事务作用域发生的最大变化时:原子性应用于进程的每一步而不是整个流。
Compared with flow-managed persistence in atomic flows, the most significant change happens to the scope of transactions: atomicity applies to each step of the process rather than the entire flow.
一种解决方法是增加一个变量,每创建一个新的线程该变量就加1,每终止一个线程该变量就减1,当该变量再次为零时,就关闭整个进程。
One way would be to increment a variable every time a thread is created, and decrement it whenever a thread terminates. When it reaches zero again, close the whole process.
每网站一进程(process - per - site)模型不会在网站实例之间提供错误保护。
The process-per site model does not provide failure containment across site instances.
应用推荐