
Helping senior engineers master system design and AI engineering. Get our 218-page System Design Handbook for free when you subscribe.
Level Up Coding Newsletter โ
Joined April 2024
- Tweets659
- Following2
- Followers10.1K
- Likes1K
Level Up Coding retweeted
I was in the room for AWS's re:Invent Developer Keynote tonight.
75 minutes, 3 headline launches, 1 message.
Here's everything you need to know in under 2 minutes (save it). ๐
1) Project C2
AI agents paired with automated reasoning to find concurrency, timing and distributed bugs. Every bug it reports comes with a test that shows it exists. Gated preview for now.
2) The new AWS Amplify
It puts everything your app needs in one place. Code to a live app in minutes with the coding agents you already use, rollback in seconds, and one flat monthly plan that covers the whole team.
3) Shared Kiro Crew
A team shares one crew of agents, with the same memory, skills and schedules. A correction one developer makes becomes a skill the crew uses for everyone.
The message I heard: writing code isn't the hard part anymore. Checking it is.
๐พ Save it for later.
Kick off re:Invent 2026 with our Developer Keynote xitter.cf/i/broadcasts/2mdVnVjJjโฆ
Level Up Coding retweeted
5 Levels of AI agent autonomy (and who owns what?):
The right level isn't set by how capable the model is.
It's set by what a wrong action would cost.
๐๐ฒ๐๐ฒ๐น ๐ญ: ๐ข๐ฝ๐ฒ๐ฟ๐ฎ๐๐ผ๐ฟ
โณ The agent acts only when you ask: a query, an edit, a draft.
โณ You own: every decision and every step.
๐๐ฒ๐๐ฒ๐น ๐ฎ: ๐๐ผ๐น๐น๐ฎ๐ฏ๐ผ๐ฟ๐ฎ๐๐ผ๐ฟ
โณ You and the agent plan and execute together, passing control back and forth.
โณ You own: the plan, and when to take the wheel.
๐๐ฒ๐๐ฒ๐น ๐ฏ: ๐๐ผ๐ป๐๐๐น๐๐ฎ๐ป๐
โณ The agent leads the task and checks in for your expertise or preferences.
โณ You own: the context and judgement it can't find on its own.
๐๐ฒ๐๐ฒ๐น ๐ฐ: ๐๐ฝ๐ฝ๐ฟ๐ผ๐๐ฒ๐ฟ
โณ The agent works on its own and stops for sign-off on risky actions: a migration, a deploy, a customer email.
โณ You own: the line between routine and risky, and the final yes.
๐๐ฒ๐๐ฒ๐น ๐ฑ: ๐ข๐ฏ๐๐ฒ๐ฟ๐๐ฒ๐ฟ
โณ The agent runs end to end while you monitor.
โณ You own: the goal, the limits, and the stop button.
Before moving an agent up a level:
โ Can its actions be undone?
โ Is every action logged?
โ Would you spot a wrong one within minutes?
Those checks keep an agent safe. They don't show whether all the work, human and AI, still matches the plan.
Tempo Loop checks that continuously. It connects to the tools you already use, starting with Jira, and compares time, capacity and spend against the strategy that funded the work. When something drifts, it recommends a fix with its tradeoffs while there's still time to act.
As with your agents, the decision stays with people: your team approves the fix, and Loop orchestrates it back into those tools. Human and AI work are governed in one system.
๐๐
๐ฝ๐น๐ผ๐ฟ๐ฒ ๐ง๐ฒ๐บ๐ฝ๐ผ ๐๐ผ๐ผ๐ฝ โ lucode.co/tempo-loop-z74xd
What else would you add?
โโ
๐พ Save it for later.
๐ Thanks to @TempoHQ for sponsoring this post.
โ Follow Nikki Siapno to improve at system design and AI engineering.
Level Up Coding retweeted
๐๐ฃ๐ ๐๐ฎ๐๐ฒ๐๐ฎ๐ ๐๐ ๐๐ผ๐ฎ๐ฑ ๐๐ฎ๐น๐ฎ๐ป๐ฐ๐ฒ๐ฟ.
Do you know the differences?
An ๐๐ฃ๐ ๐๐ฎ๐๐ฒ๐๐ฎ๐ acts as a single entry point for clients, handling request routing, composition, and protocol translation. It simplifies client interactions with microservices and offers features like rate limiting, authentication, monitoring, and more.
๐๐ผ๐ฎ๐ฑ ๐ฏ๐ฎ๐น๐ฎ๐ป๐ฐ๐ฒ๐ฟ๐ are concerned with routing client requests across multiple servers to distribute load and prevent bottlenecks. This helps maximize throughput, reduce response time, and optimize resource use.
So what are the key differences?
API gateways focus on request management and microservice communication, while load balancers focus on traffic distribution and server load management.
API gateways operate at the application layer (L7), while load balancers can operate at both transport (L4) or application (L7) layers.
API gateways offer features like routing, rate limiting, authentication, service discovery, parameter validation, circuit breakers, and more. Load balancers handle traffic distribution and failover.
An ๐๐ฃ๐ ๐ด๐ฎ๐๐ฒ๐๐ฎ๐ ๐ถ๐ ๐๐ฑ๐ฒ๐ฎ๐น ๐ณ๐ผ๐ฟ ๐บ๐ถ๐ฐ๐ฟ๐ผ๐๐ฒ๐ฟ๐๐ถ๐ฐ๐ฒ ๐ฎ๐ฟ๐ฐ๐ต๐ถ๐๐ฒ๐ฐ๐๐๐ฟ๐ฒ๐ needing centralized API request management.
A ๐น๐ผ๐ฎ๐ฑ ๐ฏ๐ฎ๐น๐ฎ๐ป๐ฐ๐ฒ๐ฟ ๐ถ๐ ๐ฒ๐๐๐ฒ๐ป๐๐ถ๐ฎ๐น ๐ณ๐ผ๐ฟ applications requiring high availability, distributing traffic across multiple servers.
But what about reverse proxy? It also operates at the same edge. Learn more about all three in my newsletter.
What else would you add?
โโ
๐ PS: System design is one of the ๐บ๐ผ๐๐ ๐ถ๐บ๐ฝ๐ผ๐ฟ๐๐ฎ๐ป๐ ๐๐ธ๐ถ๐น๐น๐ for an engineer. Especially in the agent era. Download my ๐ฎ๐ญ๐ด ๐ฝ๐ฎ๐ด๐ฒ ๐ฆ๐๐๐๐ฒ๐บ ๐๐ฒ๐๐ถ๐ด๐ป ๐๐ฎ๐ป๐ฑ๐ฏ๐ผ๐ผ๐ธ for free and join 35,000+ engineers who get my free weekly newsletter โ lucode.co/system-design-handโฆ
โโ
๐พ Save it for later.
โ Follow Nikki Siapno to improve at system design and AI engineering.
Level Up Coding retweeted
๐ง๐ผ๐ฝ ๐ฑ ๐ฅ๐ฒ๐ฑ๐ถ๐ ๐๐ ๐จ๐๐ฒ ๐๐ฎ๐๐ฒ๐.
Redis is often introduced as a cache, but AI agents now use it for much more than caching LLM responses.
๐ญ) ๐๐ด๐ฒ๐ป๐ ๐บ๐ฒ๐บ๐ผ๐ฟ๐
โณ Use Agent Memory to build long-term memories from user actions and docs, and forget what an agent shouldn't keep, like PII.
๐ฎ) ๐ฆ๐ฒ๐บ๐ฎ๐ป๐๐ถ๐ฐ ๐ฐ๐ฎ๐ฐ๐ต๐ถ๐ป๐ด
โณ Reuse cached answers for semantically similar questions, reducing redundant LLM calls and token costs.
๐ฏ) ๐๐ผ๐ป๐๐ฒ๐
๐ ๐ฟ๐ฒ๐๐ฟ๐ถ๐ฒ๐๐ฎ๐น (๐ ๐๐ฃ)
โณ Use Context Gateway as one entry point to every context source, including your own MCP servers.
๐ฐ) ๐๐ด๐ฒ๐ป๐ ๐๐ธ๐ถ๐น๐น๐
โณ Use Agent Playbooks to reuse stable answers and skills, re-running them only when they need fresh data.
๐ฑ) ๐๐๐ ๐ฟ๐ผ๐๐๐ถ๐ป๐ด
โณ Use Intent Router to direct requests to the right model, agent, skill, or human based on what they mean.
Implementing these capabilities individually is one challenge. Keeping memory, context, and routing working together as agents scale is a whole different challenge.
Redis Iris brings these capabilities and more together in a unified, real-time context engine built on Redis, with new releases designed to help agents succeed in production.
๐๐ฟ๐ฒ๐ฎ๐ ๐๐ต๐ผ๐ฟ๐ ๐ฟ๐ฒ๐ฎ๐ฑ ๐ฎ๐ฏ๐ผ๐๐ ๐ถ๐ ๐ต๐ฒ๐ฟ๐ฒ โ lucode.co/article-redis-irisโฆ
๐ง๐ฟ๐ ๐ฅ๐ฒ๐ฑ๐ถ๐ ๐๐ฟ๐ถ๐ ๐ณ๐ผ๐ฟ ๐ณ๐ฟ๐ฒ๐ฒ ๐ต๐ฒ๐ฟ๐ฒ โ lucode.co/redis-iris-z8xd
What else would you add?
โโ
๐พ Save it for later.
๐ Thanks to @Redisinc for sponsoring this post.
โ Follow Nikki Siapno to improve at system design and AI engineering.
Level Up Coding retweeted
๐ฆ๐ฆ๐ข ๐๐ ๐ข๐๐๐๐ต ๐๐ ๐ข๐๐๐ ๐๐ ๐ฆ๐๐ ๐.
Do you know the differences?
๐ฆ๐ฆ๐ข is a user experience, not a protocol. It lets users log in once and access multiple apps without re-authenticating; providing seamless access across tools. It relies on protocols like SAML or OIDC.
๐ข๐๐๐๐ต is for authorization. It lets apps access user data or services without sharing credentials. It controls what an app can access, not identity.
๐ข๐๐๐ is an authentication layer on top of OAuth 2.0. It verifies user identity and provides user info via ID tokens (usually JWTs). Itโs the standard for login + identity in modern apps.
๐ฆ๐๐ ๐ is an older, XML-based standard primarily used for enterprise SSO. Itโs still widely used in legacy and enterprise systems, though newer applications increasingly adopt OIDC. Itโs powerful but more complex than OIDC.
OAuth = access.
OIDC = identity.
SAML = older enterprise SSO.
SSO = the experience.
But getting identity right doesnโt solve the whole access problem.
As more apps and AI agents connect to production data, managing permissions separately in every tool gets harder.
Retool centralizes that with SSO, role-based permissions, and Data Access Enforcement, giving teams shared guardrails underneath the apps and agents they build.
Build with the tools you already use. Run with Retool's enterprise controls.
๐๐ฟ๐ฒ๐ฎ๐ ๐๐ต๐ผ๐ฟ๐ ๐ฟ๐ฒ๐ฎ๐ฑ ๐ผ๐ป ๐ต๐ผ๐ ๐ถ๐ ๐๐ผ๐ฟ๐ธ๐ โ lucode.co/article-retool-govโฆ
What else would you add?
โโ
๐พ Save it for later.
๐ Thanks to @retool for sponsoring this post.
โ Follow me to improve at system design and AI engineering.
Level Up Coding retweeted
How RAG works (visually explained).
Level Up Coding retweeted
Most document pipelines donโt stall on accuracy.
They stall on cost and latency.
Extend just cut both:
โ Classification in under a second at $0.001/page
โ Parsing 40-50% cheaper
With both cost & latency down, itโs now practical to classify and lightly parse every document.
As developers, we've always been told "good, fast, or cheap - pick two."
Well today, we're introducing Extend 2.5: better, faster, and cheaper document processing. Turns out, you can have all three.
- Parse: 60% cheaper, and up to 6.8x faster
- Classify Instant: sub-second classification at $1 per 1,000 pages
- Split: the cheapest and most accurate splitter on the market
Level Up Coding retweeted
๐ฆ๐๐ฎ๐๐ฒ๐ณ๐๐น ๐๐ ๐ฆ๐๐ฎ๐๐ฒ๐น๐ฒ๐๐ ๐๐ฒ๐๐ถ๐ด๐ป.
Do you know the differences?
A ๐๐๐ฎ๐๐ฒ๐น๐ฒ๐๐ service keeps nothing between requests. Each request carries what the server needs, like a token or an ID, so any instance can handle it. Scaling is simple: add instances behind a load balancer, and losing one loses nothing.
A ๐๐๐ฎ๐๐ฒ๐ณ๐๐น service remembers. A session, an open connection or a shopping cart lives on the server between requests. Interactions get richer, but requests now have to reach the right instance, and losing it means losing that state.
If you're building AI agents that need to remember, here's a great breakdown โ lucode.co/ai-agent-memory-orโฆ
Most systems get both by keeping services stateless and moving state into a shared store, a database or cache every instance can reach.
Stateless = easy to scale. Stateful = continuity. Externalised state = both.
LLMs are stateless too. Every call starts fresh, and the model only knows what's in the prompt. An agent that "remembers" is doing the same trick: keeping its state outside the model and loading it back in.
But an agent's state is harder than a shopping cart.
The current conversation has to stay small enough to fit.
What a user said last month has to be found by meaning, not by key.
And one user's memories can never surface for another.
That changes how agent memory should be designed.
What else would you add?
โโ
๐พ Save it for later.
๐ Thanks to @OracleDevs for sponsoring this post.
โ Follow Nikki Siapno to improve at system design and AI engineering.
Level Up Coding retweeted
๐ ๐๐ฃ ๐๐ ๐๐ฃ๐.
An ๐๐ฃ๐ defines how software systems communicate through specific endpoints, requests, and responses. It gives applications a structured way to access data or trigger functionality in another system.
๐ ๐๐ฃ gives AI applications a standardized way to discover and use external tools, data, and resources. Instead of building custom integrations for every AI client, an MCP server exposes capabilities through a common protocol.
MCP doesn't replace APIs. Most MCP servers wrap them.
APIs expose the service. MCP makes it usable by a model. Or a human. The barrier to entry for non-technical people to interact with platforms has been drastically reduced.
But once a model decides what to call, the work it does gets harder to track.
Agents finish tasks without status updates while people shift priorities. Permissions limit what an agent can touch, but they don't show whether its work still matches the strategy that funded it.
Tempo Loop connects to the tools teams already use, like Jira, to ๐๐ฟ๐ฎ๐ฐ๐ธ ๐ฎ๐ป๐ฑ ๐ด๐ผ๐๐ฒ๐ฟ๐ป ๐ต๐๐บ๐ฎ๐ป ๐ฎ๐ป๐ฑ ๐๐ ๐๐ผ๐ฟ๐ธ, ๐ฎ๐ป๐ฑ ๐๐ต๐ฎ๐ ๐ถ๐ ๐ฐ๐ผ๐๐๐, ๐ถ๐ป ๐ผ๐ป๐ฒ ๐น๐ถ๐๐ฒ ๐๐ถ๐ฒ๐. When work drifts, it recommends a fix while there's still time to act, then updates those tools once the change is approved.
๐ฆ๐ฒ๐ฒ ๐ต๐ผ๐ ๐ง๐ฒ๐บ๐ฝ๐ผ ๐๐ผ๐ผ๐ฝ ๐๐ผ๐ฟ๐ธ๐ โ lucode.co/tempo-loop-z73xd
What else would you add?
โโ
๐พ Save it for later.
๐ Thanks to @TempoHQ for sponsoring this post.
Level Up Coding retweeted
๐ข๐๐๐๐ต ๐๐ ๐๐ฃ๐ ๐๐ฒ๐ ๐๐ ๐๐ฎ๐๐ถ๐ฐ ๐๐๐๐ต ๐๐ ๐บ๐ง๐๐ฆ.
Do you know the differences?
They all help secure access, but what they actually verify, and how they do it, is very different.
๐ข๐๐๐๐ต ๐ฎ.๐ฌ uses scoped access tokens to let applications access resources without sharing user passwords. Tokens can expire and access can be revoked.
๐๐ฃ๐ ๐๐ฒ๐๐ use a shared secret to identify and authenticate the calling application. They're simple to implement, but the key itself doesn't prove who holds it.
๐๐ฎ๐๐ถ๐ฐ ๐๐๐๐ต sends a username and password with every request. It's straightforward, but credentials must be protected with HTTPS.
๐บ๐ง๐๐ฆ uses certificates to authenticate both the client and server during the TLS handshake. It's useful for service-to-service communication where both sides need to verify identity.
But choosing an authentication method is only part of the problem. You also need to manage credentials throughout their lifecycle.
Take CI/CD pipelines. A deployment might depend on a long-lived API key or deploy key stored in its secrets.
Even if it's stored securely, that credential can still be leaked, copied, or forgotten. And rotating it can break deployments that depend on it.
One approach is to replace static credentials with ๐๐ต๐ผ๐ฟ๐-๐น๐ถ๐๐ฒ๐ฑ, ๐ถ๐ฑ๐ฒ๐ป๐๐ถ๐๐-๐ฏ๐ฎ๐๐ฒ๐ฑ ๐ฎ๐ฐ๐ฐ๐ฒ๐๐.
Instead of retrieving a stored secret, the pipeline proves its identity and receives a credential scoped to what it needs. That credential expires automatically.
Teleport Machine ID implements this approach by letting CI/CD runners use their platform identity to obtain short-lived certificates instead of storing deploy keys.
This reduces the need to manage long-lived credentials while keeping access tied to specific machine identities.
๐๐ฒ๐ฎ๐ฟ๐ป ๐ต๐ผ๐ ๐๐ผ ๐ฒ๐น๐ถ๐บ๐ถ๐ป๐ฎ๐๐ฒ ๐๐๐ฎ๐๐ถ๐ฐ ๐ฐ๐ฟ๐ฒ๐ฑ๐ฒ๐ป๐๐ถ๐ฎ๐น๐ โ lucode.co/teleport-machine-wโฆ
What else would you add?
โโ
๐พ Save it for later.
๐ Thanks to @goteleport for sponsoring this post.
โ Follow Nikki Siapno to improve at system design and AI engineering.
Level Up Coding retweeted
๐๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ๐ ๐๐ ๐ฉ๐ถ๐ฟ๐๐๐ฎ๐น ๐ ๐ฎ๐ฐ๐ต๐ถ๐ป๐ฒ๐ ๐๐ ๐ฆ๐ฎ๐ป๐ฑ๐ฏ๐ผ๐
๐ฒ๐.
Do you know the differences?
Containers isolate processes.
VMs isolate operating systems.
Sandboxes restrict what untrusted code can access.
But when the code comes from an AI agent, containing the run is only half of it.
The agent's output still has to land somewhere: the company's codebase, its live product. A sandbox limits what code can touch while it runs, not what ships afterwards.
So the boundary has two parts: an isolated place for the agent to work, and a review step before changes reach production.
Replit runs agents in isolated cloud environments, away from employee laptops. For work on an existing company codebase, agents turn their work into proposed changes for engineering to review.
The agent proposes the change.
Engineering decides what ships.
๐ฆ๐ฒ๐ฒ ๐ต๐ผ๐ ๐ฅ๐ฒ๐ฝ๐น๐ถ๐ ๐ฟ๐๐ป๐ ๐ฎ๐ด๐ฒ๐ป๐๐ ๐ณ๐ผ๐ฟ ๐ฐ๐ผ๐บ๐ฝ๐ฎ๐ป๐ถ๐ฒ๐ โ lucode.co/replit-for-businesโฆ
Read the post below for more details on ๐๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ๐ ๐๐ ๐ฉ๐ถ๐ฟ๐๐๐ฎ๐น ๐ ๐ฎ๐ฐ๐ต๐ถ๐ป๐ฒ๐ ๐๐ ๐ฆ๐ฎ๐ป๐ฑ๐ฏ๐ผ๐
๐ฒ๐.
Thanks to @Replit for sponsoring this post.
๐๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ๐ ๐๐ ๐ฉ๐ถ๐ฟ๐๐๐ฎ๐น ๐ ๐ฎ๐ฐ๐ต๐ถ๐ป๐ฒ๐ ๐๐ ๐ฆ๐ฎ๐ป๐ฑ๐ฏ๐ผ๐
๐ฒ๐.
Do you know the differences?
A ๐ฐ๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ isolates processes on a shared kernel. Namespaces control what each process can see, and cgroups control what resources it can use. They start fast and pack densely on one host.
For stronger isolation, ๐๐ถ๐ฟ๐๐๐ฎ๐น ๐บ๐ฎ๐ฐ๐ต๐ถ๐ป๐ฒ๐ run their own operating systems. A hypervisor gives each VM virtual hardware and a separate guest kernel, creating a stronger boundary between workloads.
When the code itself canโt be trusted, thatโs where ๐๐ฎ๐ป๐ฑ๐ฏ๐ผ๐
๐ถ๐ป๐ด comes in. Sandboxes restrict what code can access, such as system calls, network connections, and files. Often built on containers or lightweight VMs, they can use technologies like gVisor, Firecracker, or seccomp filters.
Containers isolate processes. VMs isolate operating systems. Sandboxes restrict what untrusted code can access.
But when the code comes from an AI agent, containing the run is only half of it.
The agent's output still has to land somewhere: the company's codebase, its live product. A sandbox limits what code can touch while it runs, not what ships afterwards.
So the boundary has two parts: an isolated place for the agent to work, and a review step before changes reach production. Replit runs agents in isolated cloud environments, away from employee laptops. For work on an existing company codebase, agents turn their work into proposed changes for engineering to review.
The agent proposes the change. Engineering decides what ships.
๐ฆ๐ฒ๐ฒ ๐ต๐ผ๐ ๐ฅ๐ฒ๐ฝ๐น๐ถ๐ ๐ฟ๐๐ป๐ ๐ฎ๐ด๐ฒ๐ป๐๐ ๐ณ๐ผ๐ฟ ๐ฐ๐ผ๐บ๐ฝ๐ฎ๐ป๐ถ๐ฒ๐ โ lucode.co/replit-for-businesโฆ
What else would you add?
โโ
โป๏ธ Repost to help others learn and grow.
๐ Thanks to @Replit for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at system design and AI.
Level Up Coding retweeted
๐ฆ๐๐ข ๐๐ ๐ฆ๐๐ ๐๐ ๐ฆ๐๐.
An ๐ฆ๐๐ (Service Level Indicator) measures whatโs actually happening in your system; like request latency, error rate, or uptime. Itโs the raw signal that tells you how your service is performing.
An ๐ฆ๐๐ข (Service Level Objective) defines the acceptable range for an SLI, like โ99.9% of requests succeed within 200ms.โ Itโs what your team aims to achieve to maintain reliability.
An ๐ฆ๐๐ (Service Level Agreement) is a formal contract with users or customers, often tied to penalties if targets arenโt met. It defines the consequences, not just the goal.
But a service isn't the only thing teams hold to a target.
A roadmap is a target too: which initiatives get the people, time and budget. Most roadmaps have no SLI behind them. People move, priorities shift, AI agents take on work without status updates, and the gap between plan and reality grows quietly.
Measuring that gap starts with the data work already produces. Tempo Loop connects time, capacity, spend and financials into one continuously updated view of whether the work still matches the strategy that funded it, for human and AI work alike.
๐๐
๐ฝ๐น๐ผ๐ฟ๐ฒ ๐ง๐ฒ๐บ๐ฝ๐ผ ๐๐ผ๐ผ๐ฝ โ lucode.co/tempo-loop-z72xd
What else would you add?
โโ
โป๏ธ Repost to help others learn and grow.
๐ Thanks to @TempoHQ for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at AI and system design.
Level Up Coding retweeted
๐ง๐ผ๐ฝ ๐ด ๐๐ฒ๐ฝ๐น๐ผ๐๐บ๐ฒ๐ป๐ ๐ฃ๐ฎ๐๐๐ฒ๐ฟ๐ป๐.
Do you know the differences?
These patterns all help ship changes, but what actually happens in each strategy is very different and they work at different layers.
Infrastructure Layer.
๐ญ) ๐ฅ๐ผ๐น๐น๐ถ๐ป๐ด: the default for stateless services when two versions can safely overlap. Cheap to run, but rollback is just another slow rollout.
๐ฎ) ๐๐น๐๐ฒ-๐ด๐ฟ๐ฒ๐ฒ๐ป: when you need fast rollback and can afford two environments. A shared database makes it harder than it looks.
๐ฏ) ๐ฆ๐ต๐ฎ๐ฑ๐ผ๐: when you're rewriting a critical path and want to test it against real traffic first. You pay for duplicate load and must isolate side effects.
๐ฐ) ๐๐บ๐บ๐๐๐ฎ๐ฏ๐น๐ฒ ๐ถ๐ป๐ณ๐ฟ๐ฎ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ: when config drift keeps causing surprises. Replacing instances with tested images improves consistency, but requires reliable image builds and provisioning.
Release Layer.
๐ฑ) ๐๐ฒ๐ฎ๐๐๐ฟ๐ฒ ๐ณ๐น๐ฎ๐ด๐: when you want to decouple code deployment from releasing 100% of your changes to everyone instantly. Every flag is a code path you'll have to clean up.
๐ฒ) ๐๐ฎ๐ป๐ฎ๐ฟ๐: when a change is risky and your metrics catch regressions fast. A small group of real users still hits the bug.
๐ณ) ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฒ๐๐๐ถ๐๐ฒ ๐ฑ๐ฒ๐น๐ถ๐๐ฒ๐ฟ๐: when you want to control exposure using real production signals. Rollouts can advance or stop based on metrics, but reliable observability is essential.
๐ด) ๐/๐ ๐๐ฒ๐๐๐ถ๐ป๐ด: when the question is "is this better?", not "is this safe?". Results need enough traffic to mean anything.
But these patterns only protect the changes that actually use them.
Feature flags can power canaries, A/B tests, and progressive rollouts. But deciding which changes need flags, setting rollout rules, and cleaning them up still falls to engineers.
LaunchDarkly's new Release Autopilot uses AI agents to automate that setup.
It classifies changes by risk, adds feature flags when needed, and progressively releases changes while monitoring live production signals against defined guardrails. It also helps clean up flags after release.
๐๐
๐ฝ๐น๐ผ๐ฟ๐ฒ ๐ฅ๐ฒ๐น๐ฒ๐ฎ๐๐ฒ ๐๐๐๐ผ๐ฝ๐ถ๐น๐ผ๐ โ lucode.co/release-autopilot-โฆ
What else would you add?
โโ
โป๏ธ Repost to help others learn deployment patterns.
๐ Thanks to @LaunchDarkly for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at system design and AI.
8 Deployment Patterns Engineers Should Know:
These patterns all help ship changes, but what actually happens in each strategy is very different and they work at different layers.
Infrastructure Layer
๐ญ) ๐ฅ๐ผ๐น๐น๐ถ๐ป๐ด: the default for stateless services when two versions can safely overlap. Cheap to run, but rollback is just another slow rollout.
๐ฎ) ๐๐น๐๐ฒ-๐ด๐ฟ๐ฒ๐ฒ๐ป: when you need fast rollback and can afford two environments. A shared database makes it harder than it looks.
๐ฏ) ๐ฆ๐ต๐ฎ๐ฑ๐ผ๐: when you're rewriting a critical path and want to test it against real traffic first. You pay for duplicate load and must isolate side effects.
๐ฐ) ๐๐บ๐บ๐๐๐ฎ๐ฏ๐น๐ฒ ๐ถ๐ป๐ณ๐ฟ๐ฎ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ: when config drift keeps causing surprises. Replacing instances with tested images improves consistency, but requires reliable image builds and provisioning.
Release Layer
๐ฑ) ๐๐ฒ๐ฎ๐๐๐ฟ๐ฒ ๐ณ๐น๐ฎ๐ด๐: when you want to decouple code deployment from releasing 100% of your changes to everyone instantly. Every flag is a code path you'll have to clean up.
๐ฒ) ๐๐ฎ๐ป๐ฎ๐ฟ๐: when a change is risky and your metrics catch regressions fast. A small group of real users still hits the bug.
๐ณ) ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฒ๐๐๐ถ๐๐ฒ ๐ฑ๐ฒ๐น๐ถ๐๐ฒ๐ฟ๐: when you want to control exposure using real production signals. Rollouts can advance or stop based on metrics, but reliable observability is essential.
๐ด) ๐/๐ ๐๐ฒ๐๐๐ถ๐ป๐ด: when the question is "is this better?", not "is this safe?". Results need enough traffic to mean anything.
But these patterns only protect the changes that actually use them.
Feature flags can power canaries, A/B tests, and progressive rollouts. But deciding which changes need flags, setting rollout rules, and cleaning them up still falls to engineers.
LaunchDarkly's new Release Autopilot uses AI agents to automate that setup.
It classifies changes by risk, adds feature flags when needed, and progressively releases changes while monitoring live production signals against defined guardrails. It also helps clean up flags after release.
๐๐
๐ฝ๐น๐ผ๐ฟ๐ฒ ๐ฅ๐ฒ๐น๐ฒ๐ฎ๐๐ฒ ๐๐๐๐ผ๐ฝ๐ถ๐น๐ผ๐ โ lucode.co/release-autopilot-โฆ
What else would you add?
โโ
โป๏ธ Repost to help others learn deployment patterns.
๐ Thanks to @LaunchDarkly for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at system design and AI.
Level Up Coding retweeted
Concurrency is ๐ก๐ข๐ง Parallelism.
These terms are often used interchangeably. But they describe very different ideas.
As Rob Pike (one of the creators of Go) put it:
๐๐ผ๐ป๐ฐ๐๐ฟ๐ฟ๐ฒ๐ป๐ฐ๐ is about ๐๐๐๐ก๐๐ฃ๐ ๐ฌ๐๐ฉ๐ lots of things at once.
๐ฃ๐ฎ๐ฟ๐ฎ๐น๐น๐ฒ๐น๐ถ๐๐บ is about ๐๐ค๐๐ฃ๐ lots of things at once.
Hereโs the difference in practice:
Concurrency
โณ Multiple tasks are in progress.
โณ Work is interleaved to use resources efficiently
Parallelism
โณ Multiple tasks are executing simultaneously
โณ Work happens at the same time across cores or systems
In other words: concurrency helps manage complexity, while parallelism increases throughput.
But switching only stays cheap when the scheduler knows which task is ready. An event loop doesn't check every connection in turn: the OS tells it which ones have data.
With coding agents running in parallel, the scheduler is you. Opening each session to see whether it's done, stuck or waiting on input is the expensive way to switch.
JetBrains Air in IDEs applies the same idea. It runs sessions from the agents you choose across your open projects, and tracks unread updates, changed files and outgoing commits in one place, so your attention goes where it's needed.
๐ง๐ฟ๐ ๐๐ถ๐ฟ ๐ถ๐ป ๐๐ผ๐๐ฟ ๐๐ฒ๐๐๐ฟ๐ฎ๐ถ๐ป๐ ๐๐๐, ๐ณ๐ฟ๐ฒ๐ฒ ๐ณ๐ผ๐ฟ ๐ฎ ๐น๐ถ๐บ๐ถ๐๐ฒ๐ฑ ๐๐ถ๐บ๐ฒ ๐๐ถ๐๐ต ๐๐๐ป๐ถ๐ฒ ๐๐ถ๐๐ฒ โ lucode.co/jetbrains-air-in-iโฆ
What else would you add?
โโ
โป๏ธ Repost to help others learn and grow.
๐ Thanks to @jetbrains for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at system design and AI.
Level Up Coding retweeted
๐๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ๐ ๐๐ ๐ฉ๐ถ๐ฟ๐๐๐ฎ๐น ๐ ๐ฎ๐ฐ๐ต๐ถ๐ป๐ฒ๐ ๐๐ ๐ฆ๐ฎ๐ป๐ฑ๐ฏ๐ผ๐
๐ฒ๐.
Do you know the differences?
A ๐ฐ๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ isolates processes on a shared kernel. Namespaces control what each process can see, and cgroups control what resources it can use. They start fast and pack densely on one host.
For stronger isolation, ๐๐ถ๐ฟ๐๐๐ฎ๐น ๐บ๐ฎ๐ฐ๐ต๐ถ๐ป๐ฒ๐ run their own operating systems. A hypervisor gives each VM virtual hardware and a separate guest kernel, creating a stronger boundary between workloads.
When the code itself canโt be trusted, thatโs where ๐๐ฎ๐ป๐ฑ๐ฏ๐ผ๐
๐ถ๐ป๐ด comes in. Sandboxes restrict what code can access, such as system calls, network connections, and files. Often built on containers or lightweight VMs, they can use technologies like gVisor, Firecracker, or seccomp filters.
Containers isolate processes. VMs isolate operating systems. Sandboxes restrict what untrusted code can access.
But when the code comes from an AI agent, containing the run is only half of it.
The agent's output still has to land somewhere: the company's codebase, its live product. A sandbox limits what code can touch while it runs, not what ships afterwards.
So the boundary has two parts: an isolated place for the agent to work, and a review step before changes reach production. Replit runs agents in isolated cloud environments, away from employee laptops. For work on an existing company codebase, agents turn their work into proposed changes for engineering to review.
The agent proposes the change. Engineering decides what ships.
๐ฆ๐ฒ๐ฒ ๐ต๐ผ๐ ๐ฅ๐ฒ๐ฝ๐น๐ถ๐ ๐ฟ๐๐ป๐ ๐ฎ๐ด๐ฒ๐ป๐๐ ๐ณ๐ผ๐ฟ ๐ฐ๐ผ๐บ๐ฝ๐ฎ๐ป๐ถ๐ฒ๐ โ lucode.co/replit-for-businesโฆ
What else would you add?
โโ
โป๏ธ Repost to help others learn and grow.
๐ Thanks to @Replit for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at system design and AI.
Level Up Coding retweeted
๐ ๐๐ฃ ๐๐ ๐ฅ๐๐ ๐๐ ๐๐ ๐๐ด๐ฒ๐ป๐๐.
๐ ๐๐ฃ ๐ถ๐ ๐๐ต๐ฒ ๐ฐ๐ผ๐ป๐ป๐ฒ๐ฐ๐๐ถ๐ผ๐ป ๐น๐ฎ๐๐ฒ๐ฟ. It gives AI systems a standard way to connect to external systems and capabilities. MCP servers expose tools for querying databases, calling APIs, or taking actions, without requiring custom integrations for every client. But it handles connectivity, not retrieval.
That's where ๐ฅ๐๐ comes in. It searches your docs at query time, pulling relevant chunks into the prompt so answers can draw from your data. Keeping it current means updating an index, not retraining the model. In a basic RAG pipeline, the flow is straightforward: retrieve, then answer.
Now with ๐๐ ๐๐ด๐ฒ๐ป๐๐, the model runs in a loop: plan a step, call a tool, read the result, repeat until the goal is met. That handles multi-step tasks, at the cost of more latency, tokens, and failure points.
So the choice comes down to the gap you're closing: access to systems, knowledge from your data, or action over many steps.
But executing a task successfully doesn't necessarily mean it's still the right task.
Priorities shift, budgets change, and teams move between projects. Both humans and AI agents can keep executing work that no longer aligns with the bigger plan.
The problem is that strategy, capacity, spend, and execution data often live in different systems. By the time a quarterly review reveals the gap between plan and reality, time and budget have already been spent.
Catching that drift early means continuously connecting what was planned with the work actually happening, across both human teams and AI agents.
Tempo Loop brings together time, capacity, spend, and execution data in one unified view across human and AI-agent work.
It answers a simple question without chasing status updates: Are we still working on the right things?
When something drifts, Loop identifies the gap, recommends corrective actions with tradeoff context, and orchestrates approved changes back into the systems teams already use, like Jira.
๐๐ด๐ฒ๐ป๐๐ ๐น๐ผ๐ผ๐ฝ ๐ผ๐ป ๐๐ฎ๐๐ธ๐. ๐ง๐ต๐ถ๐ ๐ผ๐ป๐ฒ ๐น๐ผ๐ผ๐ฝ๐ ๐ผ๐ป ๐ฝ๐ฟ๐ถ๐ผ๐ฟ๐ถ๐๐ถ๐ฒ๐.
๐ฆ๐ฒ๐ฒ ๐ต๐ผ๐ ๐ง๐ฒ๐บ๐ฝ๐ผ ๐๐ผ๐ผ๐ฝ ๐๐ผ๐ฟ๐ธ๐ โ lucode.co/tempo-loop-z71xd
What else would you add?
โโ
โป๏ธ Repost to help others learn AI.
๐ Thanks to @TempoHQ for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at AI and system design.
๐ ๐๐ฃ ๐๐ ๐ฅ๐๐ ๐๐ ๐๐ ๐๐ด๐ฒ๐ป๐๐.
๐ ๐๐ฃ is the connection layer. It gives AI systems a standard way to connect to external systems and capabilities. MCP servers expose tools for querying databases, calling APIs, or taking actions, without requiring custom integrations for every client. But it handles connectivity, not retrieval.
That's where ๐ฅ๐๐ comes in. It searches your docs at query time, pulling relevant chunks into the prompt so answers can draw from your data. Keeping it current means updating an index, not retraining the model. In a basic RAG pipeline, the flow is straightforward: retrieve, then answer.
Now with ๐๐ ๐๐ด๐ฒ๐ป๐๐, the model runs in a loop: plan a step, call a tool, read the result, repeat until the goal is met. That handles multi-step tasks, at the cost of more latency, tokens, and failure points.
So the choice comes down to the gap you're closing: access to systems, knowledge from your data, or action over many steps.
But executing a task successfully doesn't necessarily mean it's still the right task.
Priorities shift, budgets change, and teams move between projects. Both humans and AI agents can keep executing work that no longer aligns with the bigger plan.
The problem is that strategy, capacity, spend, and execution data often live in different systems. By the time a quarterly review reveals the gap between plan and reality, time and budget have already been spent.
Catching that drift early means continuously connecting what was planned with the work actually happening, across both human teams and AI agents.
Tempo Loop brings together time, capacity, spend, and execution data in one unified view across human and AI-agent work.
It answers a simple question without chasing status updates: Are we still working on the right things?
When something drifts, Loop identifies the gap, recommends corrective actions with tradeoff context, and orchestrates approved changes back into the systems teams already use, like Jira.
๐๐ด๐ฒ๐ป๐๐ ๐น๐ผ๐ผ๐ฝ ๐ผ๐ป ๐๐ฎ๐๐ธ๐. ๐ง๐ต๐ถ๐ ๐ผ๐ป๐ฒ ๐น๐ผ๐ผ๐ฝ๐ ๐ผ๐ป ๐ฝ๐ฟ๐ถ๐ผ๐ฟ๐ถ๐๐ถ๐ฒ๐.
๐ฆ๐ฒ๐ฒ ๐ต๐ผ๐ ๐ง๐ฒ๐บ๐ฝ๐ผ ๐๐ผ๐ผ๐ฝ ๐๐ผ๐ฟ๐ธ๐ โ lucode.co/tempo-loop-z71xd
What else would you add?
โโ
โป๏ธ Repost to help others learn AI.
๐ Thanks to @TempoHQ for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at AI and system design.
Level Up Coding retweeted
Kubernetes visually explained.
Want to learn more? Deep dive is available in my newsletter.
PS: System design is must for engineers. Download my 218 page System Design Handbook for free and join 35,000+ engineers who get my free weekly newsletter โ lucode.co/system-design-handโฆ
Level Up Coding retweeted
8 Deployment Patterns Engineers Should Know:
These patterns all help ship changes, but what actually happens in each strategy is very different and they work at different layers.
Infrastructure Layer
๐ญ) ๐ฅ๐ผ๐น๐น๐ถ๐ป๐ด: the default for stateless services when two versions can safely overlap. Cheap to run, but rollback is just another slow rollout.
๐ฎ) ๐๐น๐๐ฒ-๐ด๐ฟ๐ฒ๐ฒ๐ป: when you need fast rollback and can afford two environments. A shared database makes it harder than it looks.
๐ฏ) ๐ฆ๐ต๐ฎ๐ฑ๐ผ๐: when you're rewriting a critical path and want to test it against real traffic first. You pay for duplicate load and must isolate side effects.
๐ฐ) ๐๐บ๐บ๐๐๐ฎ๐ฏ๐น๐ฒ ๐ถ๐ป๐ณ๐ฟ๐ฎ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ: when config drift keeps causing surprises. Replacing instances with tested images improves consistency, but requires reliable image builds and provisioning.
Release Layer
๐ฑ) ๐๐ฒ๐ฎ๐๐๐ฟ๐ฒ ๐ณ๐น๐ฎ๐ด๐: when you want to decouple code deployment from releasing 100% of your changes to everyone instantly. Every flag is a code path you'll have to clean up.
๐ฒ) ๐๐ฎ๐ป๐ฎ๐ฟ๐: when a change is risky and your metrics catch regressions fast. A small group of real users still hits the bug.
๐ณ) ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฒ๐๐๐ถ๐๐ฒ ๐ฑ๐ฒ๐น๐ถ๐๐ฒ๐ฟ๐: when you want to control exposure using real production signals. Rollouts can advance or stop based on metrics, but reliable observability is essential.
๐ด) ๐/๐ ๐๐ฒ๐๐๐ถ๐ป๐ด: when the question is "is this better?", not "is this safe?". Results need enough traffic to mean anything.
But these patterns only protect the changes that actually use them.
Feature flags can power canaries, A/B tests, and progressive rollouts. But deciding which changes need flags, setting rollout rules, and cleaning them up still falls to engineers.
LaunchDarkly's new Release Autopilot uses AI agents to automate that setup.
It classifies changes by risk, adds feature flags when needed, and progressively releases changes while monitoring live production signals against defined guardrails. It also helps clean up flags after release.
๐๐
๐ฝ๐น๐ผ๐ฟ๐ฒ ๐ฅ๐ฒ๐น๐ฒ๐ฎ๐๐ฒ ๐๐๐๐ผ๐ฝ๐ถ๐น๐ผ๐ โ lucode.co/release-autopilot-โฆ
What else would you add?
โโ
โป๏ธ Repost to help others learn deployment patterns.
๐ Thanks to @LaunchDarkly for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at system design and AI.
Level Up Coding retweeted
๐ ๐๐ฃ ๐๐ ๐ฅ๐๐ ๐๐ ๐๐ ๐๐ด๐ฒ๐ป๐๐.
๐ ๐๐ฃ is the connection layer. It gives AI systems a standard way to connect to external systems and capabilities. MCP servers expose tools for querying databases, calling APIs, or taking actions, without requiring custom integrations for every client. But it handles connectivity, not retrieval.
That's where ๐ฅ๐๐ comes in. It searches your docs at query time, pulling relevant chunks into the prompt so answers can draw from your data. Keeping it current means updating an index, not retraining the model. In a basic RAG pipeline, the flow is straightforward: retrieve, then answer.
Now with ๐๐ ๐๐ด๐ฒ๐ป๐๐, the model runs in a loop: plan a step, call a tool, read the result, repeat until the goal is met. That handles multi-step tasks, at the cost of more latency, tokens, and failure points.
So the choice comes down to the gap you're closing: access to systems, knowledge from your data, or action over many steps.
But executing a task successfully doesn't necessarily mean it's still the right task.
Priorities shift, budgets change, and teams move between projects. Both humans and AI agents can keep executing work that no longer aligns with the bigger plan.
The problem is that strategy, capacity, spend, and execution data often live in different systems. By the time a quarterly review reveals the gap between plan and reality, time and budget have already been spent.
Catching that drift early means continuously connecting what was planned with the work actually happening, across both human teams and AI agents.
Tempo Loop brings together time, capacity, spend, and execution data in one unified view across human and AI-agent work.
It answers a simple question without chasing status updates: Are we still working on the right things?
When something drifts, Loop identifies the gap, recommends corrective actions with tradeoff context, and orchestrates approved changes back into the systems teams already use, like Jira.
๐๐ด๐ฒ๐ป๐๐ ๐น๐ผ๐ผ๐ฝ ๐ผ๐ป ๐๐ฎ๐๐ธ๐. ๐ง๐ต๐ถ๐ ๐ผ๐ป๐ฒ ๐น๐ผ๐ผ๐ฝ๐ ๐ผ๐ป ๐ฝ๐ฟ๐ถ๐ผ๐ฟ๐ถ๐๐ถ๐ฒ๐.
๐ฆ๐ฒ๐ฒ ๐ต๐ผ๐ ๐ง๐ฒ๐บ๐ฝ๐ผ ๐๐ผ๐ผ๐ฝ ๐๐ผ๐ฟ๐ธ๐ โ lucode.co/tempo-loop-z71xd
What else would you add?
โโ
โป๏ธ Repost to help others learn AI.
๐ Thanks to @TempoHQ for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at AI and system design.
Level Up Coding retweeted
How RAG works (visually explained).
๐๐ผ๐ ๐ฅ๐๐ ๐ฎ๐ฐ๐๐๐ฎ๐น๐น๐ ๐๐ผ๐ฟ๐ธ๐
(clearly explained in under 2 mins):
LLMs are powerful, but they only know whatโs already in their context.
RAG changes that by retrieving relevant external knowledge before the model answers.
Here's how it works:
๐ญ) ๐๐ป๐ด๐ฒ๐๐ ๐๐ต๐ฒ ๐ฑ๐ฎ๐๐ฎ
โณ Collect documents, PDFs, or other data sources
โณ Clean and split the content into smaller chunks
๐ฎ) ๐๐ฟ๐ฒ๐ฎ๐๐ฒ ๐ฒ๐บ๐ฏ๐ฒ๐ฑ๐ฑ๐ถ๐ป๐ด๐
โณ Convert each chunk into a vector representation
โณ Semantically similar content produces nearby vectors
๐ฏ) ๐ฆ๐๐ผ๐ฟ๐ฒ ๐๐ต๐ฒ ๐๐ฒ๐ฐ๐๐ผ๐ฟ๐
โณ Save embeddings in a vector database
โณ Index them for efficient similarity search
๐ฐ) ๐ฅ๐ฒ๐๐ฟ๐ถ๐ฒ๐๐ฒ ๐ฟ๐ฒ๐น๐ฒ๐๐ฎ๐ป๐ ๐ฐ๐ผ๐ป๐๐ฒ๐
๐
โณ Convert the user's query into an embedding
โณ Find and retrieve the most relevant chunks
๐ฑ) ๐๐ฒ๐ป๐ฒ๐ฟ๐ฎ๐๐ฒ ๐๐ต๐ฒ ๐ฎ๐ป๐๐๐ฒ๐ฟ
โณ Combine the query and retrieved context into a prompt
โณ The LLM uses that context to generate its response
The harder part is connecting chunking, embeddings, storage, retrieval, and generation into one working pipeline.
MongoDB's free RAG course walks you through the entire process, from preparing data and generating embeddings to implementing vector search and connecting everything to an LLM.
You'll build a working RAG application using LangChain and MongoDB, with a Skill Badge to earn along the way.
๐ฆ๐๐ฎ๐ฟ๐ ๐๐ต๐ฒ ๐๐ฟ๐ฒ๐ฒ ๐ฅ๐๐ ๐๐ผ๐๐ฟ๐๐ฒ โ lucode.co/rag-course-mongodbโฆ
What else would you add?
โโ
๐พ Save it
๐ Thanks to @MongoDB for sponsoring this post.
โ Follow me ( Nikki Siapno ) to improve at system design and AI.







