Replies: 4 comments 10 replies
-
Found that there were plans for extracting generic polling: #1708 |
Beta Was this translation helpful? Give feedback.
-
OK, which one? Any links to docs? Did you mean Blocking Queries? |
Beta Was this translation helpful? Give feedback.
-
While not ideal, this design is functional. If your K8s instance cannot manage the traffic generated by the On the other hand, we recognize that polling services can lead to bottlenecks, such as having offline services on the list. Perhaps we could consider applying the retry pattern directly on the provider's side. What are your thoughts?
Are you suggesting the use of reactive change logic (aka Publish-Subscribe pattern), such as receiving messages/notifications from a Kubernetes instance? It's a sound concept; however, we must review the documentation for the current library. |
Beta Was this translation helpful? Give feedback.
-
It's great, but integration isn't possible at the moment due to the current use of the KubeClient package. However, there are plans to transition to the KubernetesClient package, as it is more commonly utilized and is the industry standard for C#. Further details can be found in the follow-up ToDo task linked here: #2111 (comment) (see the 2nd task). |
Beta Was this translation helpful? Give feedback.
-
New Feature
New
WatchKube
service discovery provider.Kube API offers a "watch" request for efficient detection of changes that can be used to keep in sync information about endpoints.
Motivation for New Feature
Ocelot currently has
Kube
andPollKube
providers with tradeoffs: fetching endpoint per request with extra hop and pressure on K8s API forKube
strategy or possibly outdated endpoints info forPollKube
. Watch request looks like another option with changes coming more fast than polling and without extra hops/pressure.I've already implemented custom service discovery provider based on KubernetesClient (not KubeClient) and solved this for myself, but it would be nice to have it out of the box.
Beta Was this translation helpful? Give feedback.
All reactions