Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Dynamically route requests based on response from an App? |
|
Author |
|
j4sonryu
Joined: 10 Jan 2018 Posts: 1 Location: Seoul
|
Posted: Wed 10 Jan '18 9:33 Post subject: Dynamically route requests based on response from an App? |
|
|
Hi Apache experts,
Is there a way to make Apache dynamically route requests based on the response from an App on Tomcat?
The usage scenario is following:
1. Apache server is distributing requests to 3 different Tomcat nodes.
2. There's a status checking URL provided by the application running on Tomcat, and it returns an HTTP response and a JSON payload describing the state of the node. if the node is running ok, it returns "RUNNING" and "200 OK".
3. I want to distribute requests from Apache to the app on Tomcat only when Apache gets back "RUNNING" status or "200 OK", and ignore the Tomcat node when Apache gets something else. (and distribute to other nodes in this case)
Is this doable with Apache? Any plugin to do this?
Thanks,
Jason |
|
Back to top |
|
mraddi
Joined: 27 Jun 2016 Posts: 152 Location: Schömberg, Baden-Württemberg, Germany
|
|
Back to top |
|
|
|
|
|
|