Connection Pool Strategy: Good, Bad or Ugly?

后端 未结 6 2069
甜味超标
甜味超标 2021-01-31 18:10

I\'m in charge of developing and maintaining a group of Web Applications that are centered around similar data. The architecture I decided on at the time was that each applicati

6条回答
  •  时光说笑
    2021-01-31 18:28

    Database- and overhead-wise, 1 pool with 30 connections and 3 pools with 10 connections are largely the same assuming the load is the same in both cases.

    Application-wise, the difference between having all data go through a single point (e.g. service layer) vs having per-application access point may be quite drastic; both in terms of performance and ease of implementation / maintenance (consider having to use distributed cache, for example).

提交回复
热议问题