Author : Matthias Biehl
Publisher : API-University Press
ISBN 13 : 1979717060
Total Pages : 129 pages
Book Rating : 4.9/5 (797 download)
Book Synopsis Webhooks – Events for RESTful APIs by : Matthias Biehl
Download or read book Webhooks – Events for RESTful APIs written by Matthias Biehl and published by API-University Press. This book was released on 2017-12-22 with total page 129 pages. Available in PDF, EPUB and Kindle. Book excerpt: Got RESTful APIs? Great. API consumers love them. But today, such RESTful APIs are not enough for the evolving expectations of API consumers. Their apps need to be responsive, event-based and react to changes in near real-time. This results in a new set of requirements for the APIs, which power the apps. APIs now need to provide concepts such as events, notifications, triggers, and subscriptions. These concepts are not natively supported by the REST architectural style. In thios book we show how to engineer RESTful APIs that support events with a webhook infrastructure. What are the alternatives to webhooks? We study several approaches for realizing events, such as Polling, Long Polling, Webhooks, HTTP Streaming, Server-Sent Events, WebSockets, WebSub and GraphQL Subscriptions. All of these approaches have their advantages and disadvantages. Can webhooks communicate in real-time? We study the non-functional requirements of a webhooks infrastructure, in areas such as security, reliability and developer experience. How do well-known API providers design webhooks? We examine the webhook infrastructure provided by GitHub, BitBucket, Stripe, Slack, and Intercom. With the best practices, case studies, and design templates provided in this book, we want to help you extend your API portfolio with a modern webhook infrastructure. So you can offer both APIs and events that developers love to use.