J.D Nicholls
Founding Full-Stack Web3 Engineer at @baxusco | Digital nomad 🎒 | Mentor 👨🏫 | Speaker 🗣️ | Developer 👨💻 | Creator of @proyecto26 #opensource #developer
Tame full-stack chaos with Temporal workflows and React wizardry, the ultimate event-driven architecture for your apps 🧙♂️✨
Digital nomad 🎒 | Mentor 👨🏫 | Speaker 🗣️ |
Full-Stack Web3 Engineer (JS, Python, C#) 👨💻 |
Open Source Contributor 🍫 |
Creator of @proyecto26 🧚
👷 Founder of MarketX 🤖 + 📇 + ₿ = 🛍️
MarkertX, the next generation of e-commerce powered by GenAI and 3D printing
To be Continued...
The next workflow activation has begun! 🚀
- Reliability
- Fault-tolerant
- Replicated state machine
- Retry policies
There are tradeoffs between
Consistency & Availability
(Strongly) Consistent, (Always) Available, Partition-tolerant
Replicate data
➕
🟰
➕
Niceee
May the Workflow be with you 🙏
We live in a world of uncertainty, where events vanish like whispers in the wind 💨
When workflows run themselves, developers dream bigger.
10x+ improved reliability
✅ Saved revenue
Simplify the coding
Enhanced visibility
into systems
Horizontal scale, even for monoliths
✅ 10x feature velocity
✅ Easier compliance
✅ Less optimization
time required
export async function loginUserWorkflow(data: LoginWorkflowData) {
const state: LoginWorkflowState = { // Your workflow state
codeStatus: LoginWorkflowCodeStatus.PENDING,
status: LoginWorkflowStatus.PENDING,
};
// Attach queries, signals and updates
setHandler(getLoginStateQuery, () => state);
setHandler( verifyLoginCodeUpdate,
async (code) => { } // Verify the code and update state
);
try {
// Generate a hashed code and send an email
const hashedCode = await sendLoginEmail(data.email);
state.code = hashedCode;
state.codeStatus = LoginWorkflowCodeStatus.SENT;
// Wait for user to verify code (human in the loop)
await condition(() => !!state.user, '10m') // wait 10 min max
// Wait for all handlers to finish before checking the state
await condition(allHandlersFinished);
// Update workflow state
} catch (error) {
// Manage failure scenarios
}
}
Only those who prove their identity shall pass 🧙♂️
The State of the Workflow is used to make decisions.
REPO / REACT / REMIXJS
TEMPORAL / NODEJS
NESTJS / NX / 🍭🍬🍫🍦
Of course Elon, Code here! 🎁
By J.D Nicholls
Tame full-stack chaos with Temporal workflows and React wizardry, the ultimate event-driven architecture for your apps 🧙♂️✨
Founding Full-Stack Web3 Engineer at @baxusco | Digital nomad 🎒 | Mentor 👨🏫 | Speaker 🗣️ | Developer 👨💻 | Creator of @proyecto26 #opensource #developer