Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide for pass-through access to http endpoint of deployed application #5658

Open
corneil opened this issue Feb 5, 2024 · 0 comments
Open

Comments

@corneil
Copy link
Contributor

corneil commented Feb 5, 2024

Problem description:
Interaction with the underlying platform is needed to obtain the address in order to properly interact with the running application.

Solution description:
Provide an endpoint that provides a proxy to the application by name and optionally instance number.
Example url can be runtime/apps/{appId}/http or runtime/apps/{appId}/instances/{instanceId}/http

This endpoint should provide for all HTTP methods.
In order to provide backwards compatibility runtime/apps/{appId}/instances/{instanceId}/post will map to runtime/apps/{appId}/instances/{instanceId}/http

Potential implementation:
Embed Spring Cloud Gateway
Search execution status when route is unknown and cache the results.
Remove entries from cache when application is destroyed or SCG connection/retries fail a certain amount of times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant