Trigger Serverless DigitalOcean Functions with Hasura Events
DigitalOcean recently released their serverless solution, Functions. This article demonstrates how to integrate DigitalOcean Functions with Hasura for various use cases such as custom business logic via Hasura Actions and event logic via Hasura Event Triggers. The integration is shown through an example of triggering DigitalOcean Functions with Hasura Events by creating a new function, setting up a namespace, and configuring Hasura Event triggers to capture insert events on the users table and invoke the serverless DigitalOcean function. Potential use cases for this integration include sending push notifications and emails based on database events, transforming and loading data into external data-stores, and deploying static sites with content backed by Postgres. The possibilities are endless, and developers can explore more examples and ideas through Hasura's documentation or Discord server.
Company
Hasura
Date published
June 22, 2022
Author(s)
Catalin Pit
Word count
727
Language
English
Hacker News points
None found.