All Episodes

September 29, 2019 123 mins

We discuss the second factor of Hasura's 3factor app, Reliable Eventing, as Allen says he still _surfs_ the Internet (but really, does he?), it's never too late for pizza according to Joe, and Michael wants to un-hear things.

This episode's full show notes can be found at https://www.codingblocks.net/episode116, just in case you're using your podcast player to read this.

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 Velocity Conference – Get expert insight on building and maintaining cloud native systems. Use the code BLOCKS during registration to get 20% off of most passes.
  • Educative.io – Level up your coding skills, quickly and efficiently. Visit educative.io/codingblocks to get 20% off any course.

Survey Says …

What's the first thing you do when picking up a new technology or stack?

 

News

  • Thank you to everyone that left us a review:
    • iTunes: !theBestCoder, guacamoly, Fishslider
    • Stitcher: SpottieDog
  • We have photographic evidence that we were in the same room with Beej from Complete Developer at Atlanta Code Camp. 

The Second Factor – Reliable Eventing

  • Don't allow for mutable state. Get rid of in memory state manipulation in APIs.
  • Persist everything in atomic events.
  • The event system should have the following characteristics:
    • Atomic – the entire operation must succeed and be isolated from other operations.
    • Reliable – events should be delivered to subscribers at least once.

Comparing the 3factor app Eventing to Traditional Transactions

Traditional application 3factor application
Request is issued, data loaded from various storage areas, apply business logic, and finally commit the data to storage. Request is issued and all events are stored individually.
Avoid using async features because it's difficult to rollback when there are problems. Due to the use of the event system, async operations are much easier to implement.
Have to implement custom recovery logic to rewind the business logic. Recovery logic isn't required since the events are atomic.

Benefits of an Immutable Event Log

  • Primary benefit is simplicity when dealing with recovery. There's no custom business logic because all the event data is available for replayability.
  • Due to the nature of persisting the individual event data, you have a built in audit trail, without the need for additional logging.
  • Replicating the application is as simple as taking the events and replaying the business logic on top of them.

Downsides of the Immutable Event Log

  • Information isn't (instantly) queryable, not taking into account snapshotting.
    • CQRS (command query responsibility segregation) helps to answer this particular problem.
  • Forcing event sourcing on every part of the system introduces significant complexity where it may not be needed.
  • For evolving applications, changing business needs require changes to the event schema and this can become very complex and difficult to maintain.
    • Upcasting: converting an event record on the fly to reflect a newer schema. Problem with this is you've now defeated the purpose of immutable events.
    • Lazy upcasting is evolving the ev
Mark as Played

Advertise With Us

Popular Podcasts

Math & Magic: Stories from the Frontiers of Marketing with Bob Pittman

Math & Magic: Stories from the Frontiers of Marketing with Bob Pittman

How do the smartest marketers and business entrepreneurs cut through the noise? And how do they manage to do it again and again? It's a combination of math—the strategy and analytics—and magic, the creative spark. Join iHeartMedia Chairman and CEO Bob Pittman as he analyzes the Math and Magic of marketing—sitting down with today's most gifted disruptors and compelling storytellers.

Eye On College Basketball

Eye On College Basketball

CBS Sports’ official college basketball podcast is the most entertaining and informative of its kind. Gary Parrish and Matt Norlander bring the sport into your ears at least three times per week with commentary, reporting, insider information and statistical analysis throughout college basketball all year long.

The Questlove Show

The Questlove Show

The Questlove Show builds on the award-winning Questlove Supreme podcast, bringing listeners into intimate, one-on-one conversations with peers, influences, and friends. Hosted by Ahmir “Questlove” Thompson, each episode uncovers the unexpected — from morning rituals and hidden talents to the art and experiences that shaped a guest’s journey. Sometimes playful, sometimes profound, always curious, QLS offers rare insight into leaders in music, film, television, comedy, literature, mental health, and beyond. It’s a fresh, unpredictable spin from a trusted source — a place where randomness is encouraged, tangents are welcomed, and conversations are anything but ordinary.

Music, radio and podcasts, all free. Listen online or download the iHeart App.

Connect

© 2026 iHeartMedia, Inc.