Reading just once in Elastic (Multi-instance)

Is it possible to read only once in elastic?

Assume I have 4 microservices which reads by timestamp, assuming four microservice has same query and timestamp as a query param. What I am trying to achieve is if any microservice read it then another service shouldn't be reading it.

Kind of implementing Kafka stream feature, registering multiple listeners on the same query.
Is there any way to achieve this? or any common API gateway?
Microservice is in GOlang ( multi-instance)

Not that I am aware of. You will need to manage coordination in the microservice.

1 Like