should job schedulers be shared in a soa environment?

試著忘記壹切 提交于 2019-12-25 04:04:39

问题


Say for example, an accounting service has a need to schedule ledger update jobs,

  1. should the accounting service include it's own scheduler? or,
  2. should job scheduling be a shared service?

I guess option (a) makes the service more autonomous?

What other criteria should be involved in making the decision?


回答1:


Job scheduler is usually an off-the-shelf component (like quartz) so you'd probably use that (many times it is embedded in the service host anyway).

In any event when you decide whether or not to create a separate service vs. having a component/library used internally within services you should consider the overhead of maintaining it, developing it as a separate unit etc. (see the nano-services antipattern)



来源:https://stackoverflow.com/questions/11351031/should-job-schedulers-be-shared-in-a-soa-environment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!