We begin to twitch as we review the first factor of Hasura’s 3factor app, Realtime GraphQL, while Allen gets distrac … SQUIRREL!, Michael might own some bell bottoms, and Joe is stuck with cobalt.
If you’re reading these notes via your podcast app, you can find this episode’s full show notes and join in on the conversation at https://www.codingblocks.net/episode115.
Sponsors
Datadog.com/codingblocks – Sign up today for a free 14 day trial and get a free Datadog t-shirt after creating your first dashboard.
O’Reilly Software Architecture Conference – Microservices, domain-driven design, and more. The O’Reilly Software Architecture Conference covers the skills and tools every software architect needs. Use the code BLOCKS during registration to get 20% off of most passes.
To everyone that took a moment to leave us a review, thank you. We really appreciate it.
iTunes: Zj, Who farted? Not me., Markus Johansson, this jus10, siftycat, Runs-With-Scissors
Stitcher: wuddadid, unclescooter
Zach Ingbretsen gives us a Vim tutorial: RAW Vim Workshop/Tutorial (YouTube)
3factor app and the First Factor
3factor app
The 3factor app is a modern architecture for full stack applications, described by the folks at Hasura.
High feature velocity and scalability from the start:
Real time GraphQL
Reliable eventing
Async serverless
Kinda boils down to …
Have an API gateway (for them, GraphQL).
Store state in a (most likely distributed) store.
Have services interact with state via an event system.
Versus how did we used to do things using a REST API for each individual entity.
Let’s be honest though. We probably created a single very specialized REST API for a particular page all in the name of performance. But it was only used for that page.
Related technologies:
Web Sockets
Serverless
Lambda / Kappa – Types Streaming architectures
Event based architectures
Microservices
Factor 1 – Realtime GraphQL
Use Realtime GraphQL as the Data API Layer
Must be low-latency.
Less than 100 ms is ideal.
Must support subscriptions.
Allows the application to consume information from the GraphQL API in real-time.
Some Comparisons to Typical Backend API Calls
Traditional application
3factor application
Uses REST calls.
Uses GraphQL API.
May require multiple calls to retrieve all data (customer, order, order details) – OR a complex purpose built call that will return all three in one call.
Uses GraphQL query to return data needed in a single call defined by the caller.
United States of Kennedy is a podcast about our cultural fascination with the Kennedy dynasty. Every week, hosts Lyra Smith and George Civeris go into one aspect of the Kennedy story.
If you've ever wanted to know about champagne, satanism, the Stonewall Uprising, chaos theory, LSD, El Nino, true crime and Rosa Parks, then look no further. Josh and Chuck have you covered.
Current and classic episodes, featuring compelling true-crime mysteries, powerful documentaries and in-depth investigations. Follow now to get the latest episodes of Dateline NBC completely free, or subscribe to Dateline Premium for ad-free listening and exclusive bonus content: DatelinePremium.com