Scalable Systems: System Design Case Study
medium.com·5h·
Discuss: r/node
Flag this post

Stage 1: The Database choice!

To start off I needed to think about where we will store the raw data. The data we were supposed to fetch was coming from third party events and it was very crooked. Crooked in a sense that it didn’t had the same structure for the same event triggered twice!. So, a very clear choice in this case to me was to choose a NoSQL database. And I chose elasticSearch for it.

Press enter or click to view image in full size

Created with Mermaid

Now, all of the raw data will be kept in elastic search and then it should be processed (formatted, indexed) as well right?

But then how do you do that for an event based system?

Let’s assume there is an event ‘A’ that is triggered and it gives us certain data and that same event ‘A’ occurred again while we w…

Similar Posts

Loading similar posts...