Server-sent Events as a Trigger Type #2841
Replies: 5 comments 3 replies
-
Hi @ballcoach12 The current HTTP trigger current implementation will allow upgrade connection and support SSE.
HLD (for whenever this would be implemented) flow could be:
Was wonder your specific use case of nuclio functions? are you doing web serving? |
Beta Was this translation helpful? Give feedback.
-
@ballcoach12 - I'd use kafka for such pipeline (instead of SSE), you'd achieve the same with less |
Beta Was this translation helpful? Give feedback.
-
Anyhow, I'd ping my colleague @TomerShor to see what we can bring. |
Beta Was this translation helpful? Give feedback.
-
The more I think about this, the more inclined I am to believe that I will have to provide my own custom trigger. There are some complications involved with our applications since our devices are considered to be critical infrastructure assets. Specifically, authentication is always required when connecting to the device and the credentials automatically change. As a result, for the server to be able to log in and establish the connection to receive SSEs, it would have to use our platform services to obtain the credentials. I wonder if any thought has been given to a trigger repository so that we could register triggers that are specific to our platform; I expect that this would not be the only custom trigger that we would want to support. |
Beta Was this translation helpful? Give feedback.
-
@ballcoach12 The registry is an interface but not extendable externally to nuclio's repository. That being said, since go support plugins, a change to the infrastructure to support external trigger could be possible, requiring some hard work. Question is, how we can abstract most of your usage to enable common usage, so you can extend the business logic on the function itself (and not the core). |
Beta Was this translation helpful? Give feedback.
-
We have the need to access REST APIs that allow for the registration of HTTP Server Sent Events to receive data in streams. I am wondering if it would be possible to simply use the existing HTTP trigger to accomplish this or whether a special trigger would have to be developed in order to support this.
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions