Posts

Showing posts from September, 2019

Significance of Elasticsearch

Everyone is talking about one of the latest technologies called 'Elasticsearch'. Then some of the questions comes to my mind; - What is it, is it a database - Basics of Elasticsearch - How it runs - What it does - How to use - What are the dependencies Below I will explain my understanding and is to refer for myself as needed :-) ES is a document-oriented database designed to store, retrieve, and manage document-oriented or semi-structured data. When you use Elasticsearch, you store data in JSON document form. Then, you query them for retrieval. It is schema-less, using some defaults to index the data unless you provide mapping as per your needs. Elasticsearch uses Lucene StandardAnalyzer for indexing for automatic type guessing and for high precision. Every feature of Elasticsearch is exposed as a REST API: Index API: Used to document the index. Get API: Used to retrieve the document. Search API: Used to submit your query and get a result. Put Mapping AP...

Understanding Saga Pattern

Image
Yesterday evening in a casual talk I was discussing some technologies, I came across a new Pattern to me called 'Saga Pattern". Then I went through in the night and thought of putting across my understandings for my reference. This pattern mainly supported for Microservice implementations. If you are about to implement Microservices that implements a transaction that spans multiple services, this Saga pattern help you to solve the problem you face. If you are building a Travel booking App using Microservices; In the above diagram, a high-level business action (‘Booking a trip’) involves making several low-level actions to distinct microservices. To handle client requests, we create a single-purpose edge service (a Backend for Frontend) that provides the logic of composing calls to all the downstream services. At its core, the Travel Orchestrater - Travel Agent Service exposes APIs by composing core functionality provided by different Microservices. We all know t...