apache / apache/openwhisk-runtime-nodejs

Support listening to cloud events in knative

オープン
#130 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
65
フォーク
72
PR マージ指標
30日以内にマージされた PR はありません

説明

This is a feature request...

Looking at the recent knative integration (#119) - this works great for actions listening to HTTP requests as it proxies between the HTTP request and the expected Web Action parameters/response.

This work could be extended to support listening to Cloud Events on Knative. This would allow those actions to be connected to knative [event sources](https://knative.dev/docs/eventing/).

Digging around in how Cloud Event receivers work - they use an SDK which just listens on a HTTP port for the incoming events and decodes to an object, e.g.
https://github.com/knative/eventing-sources/blob/master/cmd/event_display/main.go

We can just import the CloudEvents JS SDK to handle the HTTP transport and proxy the events to the handler functions. https://github.com/cloudevents/sdk-javascript

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。