Reader small image

You're reading from  Microservices with Clojure

Product typeBook
Published inJan 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788622240
Edition1st Edition
Languages
Right arrow
Author (1)
Anuj Kumar
Anuj Kumar
author image
Anuj Kumar

Anuj Kumar is the co-founder and chief architect of FORMCEPT, a data analytics startup based in Bangalore, India. He has more than 10 years of experience in designing large-scale distributed systems for storage, retrieval, and analytics. He has been in industry hacking, mainly in the area of data integration, data quality, and data analytics using NLP and machine learning techniques. He has published research papers at ACM conferences, got a few patents granted, and has spoken at TEDx. Prior to FORMCEPT, he has worked with the Oracle Server Technologies division in Bangalore, India.
Read more about Anuj Kumar

Right arrow

Service discovery


All the APIs exposed by a microservice are accessible via the IP address and port of the host machine on which the microservice is deployed. Since microservices are deployed in a virtual machine or a container that has a dynamic IP, it is quite possible that the IPs and ports that are allocated to the microservice APIs may change over time. Therefore, IP addresses and ports of services should never be hardcoded by the depending microservice. Instead, there should be a common database of all the services that are active for the current application. Such a database of services is called the service registry in microservices architecture and is always kept up to date with the location of the microservices. It keeps the details of all the active microservices including their current IP address and port. Microservices then query this service registry to discover the current location of the required microservices and connect to them directly.

Service registry

The service registry...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Microservices with Clojure
Published in: Jan 2018Publisher: PacktISBN-13: 9781788622240

Author (1)

author image
Anuj Kumar

Anuj Kumar is the co-founder and chief architect of FORMCEPT, a data analytics startup based in Bangalore, India. He has more than 10 years of experience in designing large-scale distributed systems for storage, retrieval, and analytics. He has been in industry hacking, mainly in the area of data integration, data quality, and data analytics using NLP and machine learning techniques. He has published research papers at ACM conferences, got a few patents granted, and has spoken at TEDx. Prior to FORMCEPT, he has worked with the Oracle Server Technologies division in Bangalore, India.
Read more about Anuj Kumar