├── README.md └── doc └── adr └── 0001-use-elasticsearch-for-search-api.md /README.md: -------------------------------------------------------------------------------- 1 | # lightweight-architecture-decision-records 2 | Repository for keeping Lightweight Architecture Decision Records as described in https://www.thoughtworks.com/radar/techniques/lightweight-architecture-decision-records 3 | -------------------------------------------------------------------------------- /doc/adr/0001-use-elasticsearch-for-search-api.md: -------------------------------------------------------------------------------- 1 | # 1. Use Elastic Search for exposing enterprise wide search API. 2 | 3 | Date: 2018-05-20 4 | 5 | ## Status 6 | 7 | Accepted 8 | 9 | ## Context 10 | 11 | There is a need of having an API exposed which can be used to search enterprise wide common data model. 12 | 13 | The data currently resides in a RDBMS database, it is difficult to expose micro-services directly querying out of RDBMS databases since the application runs out the same environment. 14 | 15 | There are options like ElasticSearch or Solr where data can be replicated. 16 | 17 | ## Decision 18 | 19 | Use ElasticSearch for data indexing 20 | 21 | ## Consequences 22 | 23 | Data needs to be replicated across the ElasticSearch cluster. This separate cluster needs proper maintenance. 24 | 25 | * Near-real time data replication is required. 26 | * Additional cost of maintaining the ElasticSearch environments 27 | 28 | --------------------------------------------------------------------------------