I had a discussion with a colleague the other day about the design of the interface my microservice will use to expose a specific data set. The data is saved by my microservice in Elastic Search and meant to be consumed and presented by the UI in different forms, according to filters the end user will choose. When I merely suggested the blasphemous idea of having the UI querying the data directly from Elastic Search, the classic “Microservices should never expose their underlying data store” argument was ignited.

Who owns this data??

Services Exposing Data

I’ll start from the end. Services can expose data in any way…

Roger Rabbit

Carrots and justice are my passion

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store