'Is it possible handle/debug requests hitting on remote EC2 instance with local java code?
I'm writing java services deployed to EC2 instances on AWS. We're based on micro-services architecture.
When a service talks to a bunch of other services, it makes local dev environment hard to set up, I have to spin up the dependent services on localhost, and configure to call local apis. Not to mention mocking other AWS resources, sqs, sns, dynamodb...
Imagine, I have micro service: A, B, C, D, E deployed on AWS EC2. A will call B, C, D, E. When a request come and hits A service, I want to somehow "hijack" the A service to use the java code on my local machine instead of the jar deployed on that EC2 instance, and it should be able to stop at the break points set in my local IDE. After I press execute, the execution continues to call B, C, D, E services which are deployed on AWS EC2.
Is this even possible?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
