Creating a DaaS to expose data using Spring Boot
In this section, we will learn how to expose a REST-based DaaS API using Java and Spring Boot. But before we try to create the solution, we must understand the problem that we are going to solve.
Important note
REST stands for Representational State Transfer. It is not a protocol or standard; instead, it provides certain architectural constraints to expose the data layer. The REST API allows you to transfer the representational state of a data resource to the REST endpoint. These representations can be in JSON, XML, HTML, XLT, or plain text format so that they can be transferred over the HTTP/(S) protocol.
Problem statement
In the solution described in Chapter 6, Architecting a Real-Time Processing Pipeline, we analyzed and ingested analytical data in a MongoDB-based collection. Now, we want to expose the documents present in the collection using a DaaS service that can be searched for by either ApplicationId
or CustomerId...