solliancenet / serverless-microservices

MIT License
8 stars 14 forks source link

Data storage documentation #27

Open gk-8 opened 6 years ago

gk-8 commented 6 years ago

Please elaborate a bit more on the data storage section, giving the reasoning of why to use SQL vs Cosmos (relational vs non-relational) depending on the scenario, and how a microservices approach helps to make this kind of decisions

khaledhikmat commented 6 years ago

Actually the solution uses two: Cosmos and Azure SQL Database. Cosmos is used to store entities such as Drivers, Passengers and Trips and Azure SQL Database is used to persist trip summaries so they can be reported on in PowerBI, for example.

I made this section a little bit clearer by adding the key advantages that Cosmos offer for the Relecloud solution.

gk-8 commented 6 years ago

Thanks Khaled! But still missing a bit on the point we wanted to make here. Right now it might look like the only reason we are choosing SQL vs Cosmos DB for the historic data is the Power BI reporting, but that is actually something you could also do with Cosmos DB.

The point here should be more pivoted based on the following:

That was the point of using different languages and data stores, it'd be great to have it reflected.

khaledhikmat commented 6 years ago

Ah...I see ...the blind man says :blush: Thanks. Let me discuss with Joel ...we will amend.

gk-8 commented 6 years ago

Great, thanks! Please keep me posted when it's added :)