Handling Java RMI in AWS ASG

0

We have 2 services front end api service and a backend service. In order to get high tps we are using async calls.

  1. End user http call lands on one of the tomcat servers in frontend
  2. The frontend calls backend in Async with the context of the server ip and puts the request thread to sleep
  3. Once backend finishes the job it makes a callback to frontend using rmi with the server ip it got in context
  4. In the callback the original http thread is invoked.
  5. The invoked http request thread consumes the prepared data from cache and completes the response.

This was fine till we were in physical DC as we used to not scale or de-scale. With AWS ASG the server ip might not exist by the time backend service tries to make a callback. Due to this the request at the user end needs to get requests retried.

We want to get out of RMI here and still remain async. Would like to get any solutions for this

질문됨 2년 전46회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠