Skip to content
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

platform B eventing integration #9

Open
lkingland opened this issue Jul 28, 2020 · 0 comments
Open

platform B eventing integration #9

lkingland opened this issue Jul 28, 2020 · 0 comments
Assignees

Comments

@lkingland
Copy link
Collaborator

The adapter implementation for platform B is currently a stub. It will need to be fleshed out to include the implementation expected of a platform B Worker, which in particular means pull-based event handling with an internal work queue.

The grid service will request new messages from the host, and will treat the running function instance (expected to be running on a well-known local port) as a synchronous handler for each request. This necessitates that there also be a few configuration settings (which can be hard-coded constants for now): for how many concurrent goroutines to create to handle inbound events, and another for how many events to pull from the host into local memory as the local work queue. A subsequent ticket will address plumbing these through from main and the detection of platform B as the runtime environment.

In addition, the inbound and outbound events may need to be converted to/from CloudEvents before invoking the local function. This will hopefully be only temporary scaffolding code as the platform B project may end up running CloudEvents in the long run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants