A**o 发帖数: 1550 | |
m******t 发帖数: 2416 | 2
As a pattern, it still works. The implementation obviously will be a lot
more complicated.
【在 A**o 的大作中提到】 : 大家有什么看法?成还是不成?
|
h*********o 发帖数: 62 | 3 quite hard to sync the singleton intances in a cluster if you have to. One
solution is to code a mediator on top of the cluster.
Actually singleton can also be a problem when you deploy your app as ear to
an application server in java. |
g******u 发帖数: 153 | 4 Very hard to do this, the easiest way I can think is having a centralized
server and publish it as a service. let all the other server call this
service. |
t*******e 发帖数: 684 | 5 把singlton的state存入database,或用cluster wide transactional cache。 |