Level Up Coding (@LevelUpCoding_) header
Level Up Coding (@LevelUpCoding_) profile picture

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
Photo by Level Up Coding (@LevelUpCoding_)Photo by Level Up Coding (@LevelUpCoding_)Photo by Level Up Coding (@LevelUpCoding_)Photo by Level Up Coding (@LevelUpCoding_)Photo by Level Up Coding (@LevelUpCoding_)Photo by Level Up Coding (@LevelUpCoding_)Photo by Level Up Coding (@LevelUpCoding_)Photo by Level Up Coding (@LevelUpCoding_)Photo by Level Up Coding (@LevelUpCoding_)Photo by Level Up Coding (@LevelUpCoding_)
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.
3
3
19
4,353
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.
9
13
2
40
5,276
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.
7
45
1
269
16,706
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.
8
35
2
149
9,350
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.
26
443
19
3,570
303,512
Level Up Coding retweeted
How RAG works (visually explained).
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.
5
29
1
156
8,026
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
2
3
1
16
8,978
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.
6
19
1
148
8,263
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.
17
207
5
1,182
66,214
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.
5
58
3
373
17,847
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.
5
27
131
6,404
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.
2
57
273
9,753
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.
3
16
102
5,377
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.
15
73
1
480
32,215
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.
7
73
2
366
20,177
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.
15
48
1
215
8,679
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โ€ฆ
3
29
135
6,427
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.
8
58
1
278
15,117
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.
24
43
4
270
19,358
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.
2
12
2
70
6,613