Nginx duplicate post request

11/13/2019

I have an API using the Spring Boot framework and Nginx as load balance. Many times in the micro service logs the same request appears more than once, without the client having made the request. I make a request to another API, it happens when this API takes a long time to respond.

My logs:

@timestamp,@message
2019-11-12 13:23:39.545,"{""message"":""{\""timestamp\"":\""2019-11-12 10:23:38\"", \""service\””:\””registration-service-api\””, \""thread\"":\""[qtp812586739-408]\"", \""level\"":\""INFO\"", \""meta\"": Registration 7865 completed””}”
2019-11-12 13:23:26.534,"{""message"":""{\""timestamp\"":\""2019-11-12 10:23:26\"", \""service\"":\""registration-service-api\"", \""thread\"":\""[qtp812586739-506]\"", \""level\"":\""INFO\"", \""meta\"": Registration 7865 completed}””}”
2019-11-12 13:23:25.545,"{""message"":""{\""timestamp\"":\""2019-11-12 10:23:25\"", \""service\"":\""registration-service-api\"", \""thread\"":\""[qtp812586739-408]\"", \""level\"":\""INFO\"", \""meta\"": Registration 7865 started}””}”
2019-11-12 13:23:10.545,"{""message"":""{\""timestamp\"":\""2019-11-12 10:23:10\"", \""service\"":\""registration-service-api\"", \""thread\"":\""[qtp812586739-506]\"", \""level\"":\""INFO\"", \""meta\””:Registration 7865 started}””}”

Can you help me? Please.

-- Janser Lemes
kubernetes
load-balancing
nginx
spring-boot

0 Answers