Hi,
I have here a use case where the haproxy is in between a
couchdb/oracle/dynamic connect backend.
This means that we have the following flow.
APP Driver -> haproxy TCP mode -> Backend
|
-> Backend send a IP to connect -> App Driver should connect to IP
over haproxy tcp setup
Does anyone had such a request in the past?
I think that could be a nice usecase for lua & server-template?
Idea and pseudo code.
###
global
lua-load parse_and_analyze_couch.lua
frontend tcp
....
backend couch
tcp-response inspect-delay 1s
tcp-response content use-service lua.parse_and_analyze_couch
...
###
parse_and_analyze_couch.lua
####
core.register_service("parse_and_analyze_couch", "tcp", function(???)
--- some lua code
--- create server with backend from analyzed proto
end)
####
What do you think?
--
Best Regards
Aleks
I have here a use case where the haproxy is in between a
couchdb/oracle/dynamic connect backend.
This means that we have the following flow.
APP Driver -> haproxy TCP mode -> Backend
|
-> Backend send a IP to connect -> App Driver should connect to IP
over haproxy tcp setup
Does anyone had such a request in the past?
I think that could be a nice usecase for lua & server-template?
Idea and pseudo code.
###
global
lua-load parse_and_analyze_couch.lua
frontend tcp
....
backend couch
tcp-response inspect-delay 1s
tcp-response content use-service lua.parse_and_analyze_couch
...
###
parse_and_analyze_couch.lua
####
core.register_service("parse_and_analyze_couch", "tcp", function(???)
--- some lua code
--- create server with backend from analyzed proto
end)
####
What do you think?
--
Best Regards
Aleks