Board logo

標題: db同application中間會唔會加多層? 如果一個system同時用十幾個db? [打印本頁]

作者: 3ldk    時間: 2015-10-14 21:57     標題: db同application中間會唔會加多層? 如果一個system同時用十幾個db?

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

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

定係會係program入面, 各自access自已需要既db?
作者: melodyayaka    時間: 2015-10-14 22:18

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
作者: lancon    時間: 2015-10-14 22:42

回覆 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.
作者: hongkong_netcop    時間: 2015-10-15 08:07

ORM tools can take this job
e.g.: hibernate / entity framework
作者: alex959neth    時間: 2015-10-17 14:33

當好多不同品牌的database 時, ORM tools, e.g. Hibernate 如何可方便到開發?
作者: hongkong_netcop    時間: 2015-10-17 20:56

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



How to connect to multiple databases in Hibernate
作者: max918    時間: 2015-10-18 01:14

Node.js
Waterline





歡迎光臨 電腦領域 HKEPC Hardware (https://h0.hkepc.com/forum/) Powered by Discuz! 7.2