X5 Retail Group interview question

How to guarantee idempotency in REST in microservices