How Does Temporal Query vs Signal: Don’t Mix These Up! #temporal #backend Work?

Temporal Query is like asking someone for directions after you've already started walking, it looks back at what happened. Signal is like getting directions while you're still walking, it tells you where to go right now.

Temporal Query: Looking Back

Imagine you’re playing a game of memory with your friend. You ask, “What was the last card I showed you?” That’s Temporal Query, it checks what happened before in time. It's like looking at a timeline and saying, “What was here 5 minutes ago?”

Signal: Giving Real-Time Directions

Now imagine you're on a bike ride with your friend. They shout out, “Turn left now!” That’s Signal, it gives directions as things happen. It’s like a live map telling you where to go right this second.

Mixing them up is like trying to follow directions from 5 minutes ago while riding your bike, it can get confusing! Keep them separate: one for looking back, one for moving forward.

Take the quiz →

Examples

  1. A temporal query is like asking, 'What was the weather at noon yesterday?' while a signal is more like getting live updates from a weather station.
  2. Imagine your fridge sends you a message every time it gets too cold, that's a signal. A temporal query would be checking what messages it sent in the last hour.
  3. A temporal query asks, 'What happened between 9 AM and 10 AM?' while a signal is like a constant stream of updates from a sensor.

Ask a question

See also

Discussion

Recent activity

Categories: Science · temporal· backend· signals