Skip to content

Move webhook from chain link to post-chain storage backend#135

Open
howethomas wants to merge 1 commit intomainfrom
feature/webhook-as-storage
Open

Move webhook from chain link to post-chain storage backend#135
howethomas wants to merge 1 commit intomainfrom
feature/webhook-as-storage

Conversation

@howethomas
Copy link
Contributor

Add server/storage/webhook/ so webhook can run as a storage backend after the chain completes. When configured under a chain's storages (not as a link), webhook runs post-chain and can execute in parallel with other storage backends, reducing per-vCon latency vs running as a blocking link.

  • save(vcon_uuid, opts): load vCon from Redis, normalize vcon to 0.3.0, POST to each webhook-url; record_histogram for duration.
  • Options: webhook-urls, headers (same as link).

Made-with: Cursor

Add server/storage/webhook/ so webhook can run as a storage backend after
the chain completes. When configured under a chain's storages (not as a
link), webhook runs post-chain and can execute in parallel with other
storage backends, reducing per-vCon latency vs running as a blocking link.

- save(vcon_uuid, opts): load vCon from Redis, normalize vcon to 0.3.0,
  POST to each webhook-url; record_histogram for duration.
- Options: webhook-urls, headers (same as link).

Made-with: Cursor
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

Successfully merging this pull request may close these issues.

1 participant