db同application中間會唔會加多層? 如果一個system同時用十幾個db?

假設一個system同時用十幾個不同品牌的db, 仲要款款不同種類, 例如有oracle, 有mongodb, 有neo4j, 有cassandra

咁既情況你會唔會係db同app中間整多層layer, 統一個interface去access唔同既db?

定係會係program入面, 各自access自已需要既db?

it really doesn't matter as long as it is working and meet end user requirements. I will pick the one which requires less time to develop.  Clients really dont care what is in the code

TOP

回覆 1# 3ldk

"Hybrid" database type is very common.

It is worth to build a Model layer (transparent API) to access different databases behind the scenes, then your program could be more decoupled.

TOP

ORM tools can take this job
e.g.: hibernate / entity framework

TOP

當好多不同品牌的database 時, ORM tools, e.g. Hibernate 如何可方便到開發?

TOP

當好多不同品牌的database 時, ORM tools, e.g. Hibernate 如何可方便到開發?
alex959neth 發表於 2015-10-17 14:33



How to connect to multiple databases in Hibernate

TOP

Node.js
Waterline

TOP