diff --git a/docs/README.md b/docs/README.md index 8013fc0..29c679e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,21 @@ +--- +coverY: 0 +layout: + cover: + visible: true + size: full + title: + visible: true + description: + visible: true + tableOfContents: + visible: false + outline: + visible: false + pagination: + visible: true +--- + # Deveel Webhooks Here you can find documentation of the `Deveel Webhooks` framework, to help you get started with the libraries and functions that compose it and to understand how it works. diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index de138ea..dc66b04 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -4,7 +4,10 @@ * [Getting Started](getting-started.md) * [Concepts](concepts/README.md) * [What is a Webhook?](concepts/webhook.md) - * [What is a Webhook Subscription?](concepts/webook\_subscription.md) + * [What is a Webhook Subscription?](concepts/webook-subscription.md) + * [What is a Sender of Webhooks?](concepts/webhook-sender.md) + * [What is a Receiver of Webhooks?](concepts/webhooks-receivers.md) + * [What is an Event Notification?](concepts/webhook-notification.md) * [Sending Webhooks](send\_webhooks/README.md) * [Configuring the Sender](send\_webhooks/configuring-the-sender.md) * [Signing Webhooks](send\_webhooks/signing-webhooks.md) diff --git a/docs/concepts/README.md b/docs/concepts/README.md index f14a1cf..1f9f93a 100644 --- a/docs/concepts/README.md +++ b/docs/concepts/README.md @@ -2,10 +2,10 @@ The following concepts are used in this project: -| Topic | Description | -| ------- | ------------- | -| **[Webhook](webhook.md)** | What is it a 'Webhook' and why I need it? | -| **[Subscriptions](webhook_subscription.md)** | How does a subscription to an event works? | -| **[Senders](webhook_sender.md)** | What is a sender of webooks? | -| **[Receivers](webhook_receiver.md)** | What is a receiver of webooks? | -| **[Notifications](webhook_notification.md)** | What is a notification of events? | +| Topic | Description | +| --------------------------------------------- | ------------------------------------------ | +| [**Webhook**](webhook.md) | What is it a 'Webhook' and why I need it? | +| [**Subscriptions**](webhook\_subscription.md) | How does a subscription to an event works? | +| [**Senders**](webhook-sender.md) | What is a sender of webooks? | +| [**Receivers**](webhook-sender.md) | What is a receiver of webooks? | +| **Notifications** | What is a notification of events? | diff --git a/docs/concepts/webhook-notification.md b/docs/concepts/webhook-notification.md new file mode 100644 index 0000000..7676a20 --- /dev/null +++ b/docs/concepts/webhook-notification.md @@ -0,0 +1,2 @@ +# What is an Event Notification? + diff --git a/docs/concepts/webhook-sender.md b/docs/concepts/webhook-sender.md new file mode 100644 index 0000000..1d8503c --- /dev/null +++ b/docs/concepts/webhook-sender.md @@ -0,0 +1,38 @@ +--- +layout: + title: + visible: true + description: + visible: false + tableOfContents: + visible: false + outline: + visible: true + pagination: + visible: true +--- + +# What is a Sender of Webhooks? + +Considering the overall network of communications, where Webhooks are messages exchanged between two applications, a Webhook Sender is an application that sends these messages to another application (or to a multitude of applications). + +In real life, you might consider the _Sender_ as the postman delivering a letter or a package to the destination, ensuring the address is correct and exists, that the postbox can hold the shipment, eventually coming back more than once at the address (if the recipient is not at home), accepting the signature, etc. + +As much as a postman wouldn't care if the letter or package was in delivery because of an agreement between the recipient and an organization, the same way a Webhook Sender doesn't have to necessarily require the knowledge that an application is expecting the message it is sending (this would be a [Webhook Subscription](webook-subscription.md)). + +### The Delivery Destination + +A Sender requires the specification of a Destination, to be able to attempt the delivery of Webhooks, which is like a postal address, following the example above. + +In most cases, this is simply a URL (_Universal Resource Locator_), that can be reached by an HTTP request, but in some scenarios, this can be enriched with further information instructing the sender on the behavior to have with it, when attempting to deliver a package (for example, we inform the sender to leave the package to our neighbor, if we are not at home, or to try reaching us only on Thursdays, etc.). + +Such destination-specific instructions would act as an exception to the regular behavior of the sender, which is described below. + +### The Sender Behavior + +When sending a Webhook to another party, the application sending messages should ensure that the destination is reachable, the message is well-formatted, its delivery is retried (in case of failures), and the integrity of the content is assured. + +This is done by a configured behavior, that typically provides the following elements of configuration + +
Attribute | Description |
---|---|
Content Type | The specification of the format of the contents of the Webhook message (eg. JSON, XML, Form-Encoded) |
Retry Strategy | The methodology to deliver the message (eg. Circuit Breaker, Exponential Backoff, Timeout, etc.), and the configurations of retries (eg. a maximum number of retries, delays between attempts, etc.) |
Signature Method | A methodology used to sign the Webhook payloads, so that the the receiver can ensure their integrity |
Context | The set of contextual information informing the receiver of the origination of the Webhook (eg. the machine name, the application type, etc.) |