-
Notifications
You must be signed in to change notification settings - Fork 210
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
Enable embedding of gobetween in other processes #246
Comments
I took a quick crack at allowing backends to be mutable, see KnicKnic@9a7d191 Also I would like to comment that the kubernetes discovery ran into the same issue of backends not being modifiable. #30 (comment) |
There are two remaining issues.
|
Hi @KnicKnic Also, there is a difference between extending and embedding: what exactly you want to achieve? If you need just custom discovery, the easiest way to do it without touching gobetween codebase is to use 'exec' discovery with your own script/program. It may be suitable for most cases. Yep it polls data but it suites most cases we got. I see it may be needed to push backends update instantly in some cases. It may be implemented, for example, via existing REST, but it's a separate topic and we may create separate issue for this feature. Thanks! |
There are two ways of going about extending gobetween. One of which is to write a custom discovery plugin and add it for your scenario. However it looks like plugins poll their refresh information. It also means that when I want to update the client code it has to be done in this project (or a fork of it)
Another option is to have a library that is more focused on being driven.
returned load balancer is active.(had a way to determine when it was active) I couldn't quickly tell what happens when manager.Create completedCurrently I was thinking of extending gobetween by using as a library rather than embedding my version of the discovery and server syncer inside it.
Also the RPC version of the API does not support this paradigm where the caller that is creating the rules will also call to setup set & modify the backend pools.
I would love comments.
The way I envision is you would then layer the gobetween application ontop of this library to help provide backend discovery, RPC, ...
The text was updated successfully, but these errors were encountered: