Creating a microservice for Lookup
The Lookup service is used to search for services by type, geolocation, and availability. It subscribes to the events generated by the Consumer, Provider, Service, and Order microservices as an Observer and keeps a denormalized dataset that is faster to query for required Services. The Lookup service also adds longitude and latitude for the Services and Consumers that is derived from their address
and service area
or locality
. To get the longitude and latitude from the service area, it depends on an external API. The Lookup service provides the following APIs for consumers to search for a service and also filter the services by type, ratings, and providers:
URI | Description |
| Filters all the services based on the specified query. |
| Filters all the services of a given |
| Looks up the service by the given latitude-longitude set for... |