Compile
Glue
yield
an instruction.
Sounds fancy, except our instructions are really simple:
Our compiler converts your code into state machines, where each instruction represents a state.
And in turn, the runtime manages all these state machines and their transitions.
currentTick
. It also has a function called tick()
whose job is to get all the available state machines,
and make them transition, together.
currentTick
is incremented. Here’s the code if you want to check it out.
tick
.
A funtion was loaded at tick=1
, logged something at tick=2
and returned a number at tick=3
.
tick
is the only unit of time in metz, and it moves forward only when you ask it to.
In the first story we see that the poller and webhook align perfectly to create a blind spot. Both start working on the same payment, not knowing that the other is doing the same. This leads to our system capturing the same payment twice!