-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add a new type of ingress for CQRS #53
Comments
This should only support the case where the codebase is the same (e.g. the same module) as if the project is already split in two, 2 different ingresss configurations can be given explicitly by the user and support different paths. The case to solve is:
Optionally give the user the ability to have 3 files in case they want to keep the deployment in one single kubectl command but this is not necessary for this ticket |
Although that is a great idea, why not simply add add either a CRD like VirtualServer in nginx-ingress :
and the same for write service for POST. |
The problem for me at the moment is that I'm not using this in production for the time being. I need to look more into your suggestion but if you'd like you could submit a PR especially if u have the means to test it in a production environment. |
I was able to make the snippet work in the referenced post and on a tight time schedule so I went for that on the short term. Just to stress it agian, I think this kind of functionality is very important to have because it's a serious pain to script it and maintain it as such. We want the application to contain all information for itself to be routed to. |
I agree that is important to have something out of the box here, but this is just a plugin for sbt. It would give additional value to scala projects. Unfortunately as I said I don't have access to an environment to test this directly but if people volunteer to at least test it I can add the feature. My plan was to have some flag to mark a module as CQRS and it would split into 2 service definitions and 2 pods adding the ingress to divert traffic. |
hi, you mean test your implementation? Easy to spin up a microk8s or minikube. I can test it. Your plan sounds good for this specific case, although I believe that just have a verb parameter to filter on will make it more generic and likely to be accepted? |
this plugin is a bit opinionated, and it is driven by my and team's experiences but in most cases it does allow the user to alter configuration. Segregating reads from writes can be done purely on verb given that the user is using the verbs properly (might be a bit tricky for For testing I can do it, but I'm not gonna use it in production. I guess I can get away by marking the feature as experimental. In any case I don't see me working on this soon, maybe will start end of May, but thanks for your ideas, I will think about it. |
Gives value to the current community nginx ingress controller by taking responsibility of the configuration complexity to achieve splitting service traffic per http method call
See possible implementation example: kubernetes/ingress-nginx#187 (comment)
The text was updated successfully, but these errors were encountered: