/plushcap/analysis/hasura/triggering-serverless-zeit-on-postgres-events-with-hasura

Triggering Serverless Zeit Now on Postgres Events with Hasura

What's this blog post about?

In this post, we explore building a 3factor app using Hasura's instant real-time GraphQL and Now 2.0 for serverless deployments. A 3factor app is an architecture pattern for modern full stack apps that includes Realtime GraphQL, Reliable Event System, and Async Serverless. The benefits of this approach include high feature velocity, scalability, and reduced backend ops maintenance. The demo app features a GraphQL API to fetch profile information, an external API providing weather information extending Hasura API (deployed to Now), and a serverless function that reverses the name of the profile. We also discuss why serverless could be beneficial, such as minimizing backend ops, automatic failover, and cost efficiency. To build the demo app, we use Hasura GraphQL Engine on Heroku for real-time GraphQL on Postgres and Now 2.0 for deploying serverless functions and extending Hasura with custom logic as Remote Schemas. We also demonstrate how to create event triggers on tables in the Postgres database using Hasura Console and configure webhooks to carry out business logic. In summary, this post provides an overview of building a 3factor app using GraphQL and serverless technology, highlighting its benefits and demonstrating how to implement it with Hasura and Now 2.0.

Company
Hasura

Date published
May 21, 2019

Author(s)
Praveen Durairaju

Word count
1326

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.