Gridi Kono retweeted
My journey from AI sceptic to daily user has really shocked me. It happen so fast in less than a year. I now use agents daily and definitely read more code than I write now. I have very mixed emotions about this but its unavoidable.
Gridi Kono retweeted
new trick
- ask Fable a hard task
- let it think for 20 min
- when it is about to answer, abort
- copy/paste its thinking traces into a new prompt
- ask: "while reasoning about this, did you face challenges or hit walls that would be greatly simplified by design-level changes?"
Gridi Kono retweeted
I’ve been posting 1 system design concept every day.
Interested in learning system design?
Follow along. We’ll decode one concept together every day.
Gridi Kono retweeted
Interviewed a Senior Backend Engineer recently.
Strong candidate.
Microservices? ✅
Kafka? ✅
Redis? ✅
Load balancing? ✅
Then I asked:
"You're designing an API used by 10 million users."
One user starts sending 10,000 requests per second.
Your backend is getting hammered.
You need to enforce:
100 requests per minute per user.
Sounds easy.
Then I added a few constraints:
→ 100+ application servers
→ Requests can hit any server
→ Multiple requests can arrive simultaneously
→ Servers can scale up/down dynamically
→ The limit must be consistent across servers
→ You can't maintain the counter in application memory
Now the obvious solution doesn't work.
How do you design a distributed rate limiter?
Where do you maintain the counters?
How do you handle concurrent requests?
What happens when 1,000 requests arrive at exactly the same time?
And which algorithm would you choose?
Fixed Window?
Sliding Window?
Token Bucket?
Leaky Bucket?
Your turn. 👇
How would you design it?
There's a reason Redis is commonly involved in this problem.
📌 Bookmark this.
The solution comes tomorrow.
Gridi Kono retweeted
Most engineers learn system design backwards.
They jump to Kubernetes before they understand what a network packet even does.
Here’s the order that actually makes you dangerous:
1. Networks first
HTTP. TCP. DNS. Latency vs throughput.
This is the part nobody studies.
This is like trying to bench 300lbs without learning to squat.
2. Databases second
SQL vs NoSQL, indexes, replication, and partitioning.
If you can’t reason about data -> you can’t reason about scale.
3. Caching
Redis, CDNs, TTLs, eviction policies.
70% of scaling wins come from avoiding queries.
4. Queues & Streams
Kafka, RabbitMQ, SQS.
This is how you decouple timelines and handle spikes without blowing up servers.
5. Load Balancing
Round robin vs least connections vs consistent hashing.
You understand how to scale horizontally without chaos.
6. Build 5 classic designs yourself
- URL shortener
- Rate limiter
- Chat app
- Feed system
- Notifications
7. Read real-world post-mortems
Real learning is failure exposure.
You see what broke. You see WHY.
You don’t become good at system design by memorizing diagrams.
You become good by understanding the physics of distributed systems.
Latency. Durability. Throughput. Availability. Cost.
Those 5 forces rule everything.
Gridi Kono retweeted
𝗦𝘁𝗮𝗰𝗸 𝗢𝘃𝗲𝗿𝗳𝗹𝗼𝘄 𝗱𝗶𝗱𝗻'𝘁 𝗷𝘂𝘀𝘁 𝗴𝗲𝘁 𝗿𝗲𝗽𝗹𝗮𝗰𝗲𝗱 𝗯𝘆 𝗔𝗜
𝗜𝘁 𝗹𝗶𝘁𝗲𝗿𝗮𝗹𝗹𝘆 𝘁𝗿𝗮𝗶𝗻𝗲𝗱 𝗶𝘁𝘀 𝗼𝘄𝗻 𝗿𝗲𝗽𝗹𝗮𝗰𝗲𝗺𝗲𝗻𝘁
There was a time when coding meant hitting a wall... and opening 5 tabs of Stack Overflow, desperately searching for that one green-ticked answer from 2012
Before ChatGPT, Claude, or DeepSeek, there was only one place where we could:
• Find that one missing semicolon
• Decode that cryptic error message
• Copy that perfectly working code snippet (with fingers crossed)
Every developer's journey was incomplete without silently whispering, "God bless this person," to some anonymous hero who posted the exact solution you needed
Today, we just ask AI for instant help
But here's the twist:
Every AI helping you code was trained on Stack Overflow's data
That regex ChatGPT just wrote? Learned from Stack Overflow
Claude's debugging advice? Trained on millions of SO answers
DeepSeek's code suggestions? Fed Stack Overflow's knowledge base
𝗦𝘁𝗮𝗰𝗸 𝗢𝘃𝗲𝗿𝗳𝗹𝗼𝘄 𝗯𝘂𝗶𝗹𝘁 𝘁𝗵𝗲 𝘄𝗼𝗿𝗹𝗱'𝘀 𝗺𝗼𝘀𝘁 𝗰𝗼𝗺𝗽𝗿𝗲𝗵𝗲𝗻𝘀𝗶𝘃𝗲 𝗽𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗶𝗻𝗴 𝗸𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲 𝗯𝗮𝘀𝗲, 𝘁𝗵𝗲𝗻 𝘁𝗵𝗮𝘁 𝗸𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲 𝗯𝗮𝘀𝗲 𝘁𝗮𝘂𝗴𝗵𝘁 𝗔𝗜 𝗵𝗼𝘄 𝘁𝗼 𝗿𝗲𝗽𝗹𝗮𝗰𝗲 𝗶𝘁
Ultimate "I raised you" moment in tech history.
End of an era. Start of a new one.
What's your most memorable Stack Overflow save?
Gridi Kono retweeted
Latency is a silent killer.
Responding very slowly is one of the worst failures you can have.
Sometimes, the problem is not only in your system but also in your dependencies.
3 ways to deal with Latency:
Gridi Kono retweeted
🚨 Prompt engineering is officially outdated.
Anthropic just released the real playbook for building AI agents that actually work.
It’s a 30+ page deep dive called The Complete Guide to Building Skills for Claude and it quietly shifts the conversation from “prompt engineering” to real execution design.
Here’s the big idea:
A Skill isn’t just a prompt.
It’s a structured system.
You package instructions inside a SKILL.md file, optionally add scripts, references, and assets, and teach Claude a repeatable workflow once instead of re-explaining it every chat.
But the real unlock is something they call progressive disclosure.
Instead of dumping everything into context:
• A lightweight YAML frontmatter tells Claude when to use the skill
• Full instructions load only when relevant
• Extra files are accessed only if needed
Less context bloat. More precision.
They also introduce a powerful analogy:
MCP gives Claude the kitchen.
Skills give it the recipe.
Without skills: users connect tools and don’t know what to do next.
With skills: workflows trigger automatically, best practices are embedded, API calls become consistent.
They outline 3 major patterns:
1) Document & asset creation
2) Workflow automation
3) MCP enhancement
And they emphasize something most builders ignore: testing.
Trigger accuracy.
Tool call efficiency.
Failure rate.
Token usage.
This isn’t about clever wording.
It’s about designing an execution layer on top of LLMs.
Skills work across Claude.ai, Claude Code, and the API. Build once, deploy everywhere.
The era of “just write a better prompt” is ending.
Anthropic just handed everyone a blueprint for turning chat into infrastructure.
Download the guide here: resources.anthropic.com/hubf…
Gridi Kono retweeted
Everyone talks about scaling GPUs for AI.
Almost no one talks about scaling the file system feeding them.
I keep seeing the same pattern.
Teams add more compute.
Jobs still slow down.
Data access becomes the bottleneck.
Most cloud file systems grow capacity and performance together.
That’s fine at small scale.
It breaks once many workers hit the same data at the same time.
I spent some time looking into Cloud Native Qumulo (CNQ) on AWS
This is how they separate things at an architectural level:
- The data itself is stored in S3, so it can grow without limits
- Speed comes from EC2, which can be added or removed as needed
- Existing file tools keep working the same way
- When demand goes up, you add compute, not more storage
That design fits AI work well because:
- Many workers read the same datasets
- Speed needs go up and down
- Data keeps growing over time
Instead of overprovisioning “just in case,” performance follows demand.
If file data sits on your hot path, this is worth learning about.
👉 You can start here: fandf.co/3Md4d4c
Thanks to Qumulo for supporting this post.
Gridi Kono retweeted
Blogged: Encrypting Properties with System.Text.Json and a TypeInfoResolver Modifier (Part 1).
In this post we start creating a TypeInfoResolver modifier in System.Text.Json to encrypt and decrypt JSON properties during serialisation.
#dotnet #json
stevejgordon.co.uk/encryptin…
Gridi Kono retweeted
Here's a nice use case for EF interceptors:
- Tracking when your entities were created or modified
You can use the ChangeTracker to check the entity state and set the appropriate fields.
If you're always using this DbContext in an HTTP request, you can even pass in a UserId.
Want to learn more about EF interceptors?
Check out this article: milanjovanovic.tech/blog/how…
I've also used them for publishing domain events.
Converting domain events to outbox messages.
Tracking query metrics and alerting for slow queries.
I'm sure you can come up with a few ideas yourself.
---
Sign up for the .NET Weekly with 75K+ other engineers, and get a free Clean Architecture template: milanjovanovic.tech/template…
Gridi Kono retweeted
Kreu i PD, Sali Berisha konferencë me gazetarët
youtube.com/live/WXcwTn14WII…
Gridi Kono retweeted
Trying to muddle your way through a poorly designed system architecture document is no fun at all.
So in this guide, @E4ma_u_ teaches you how to create helpful system architecture documentation.
She talks about diagrams, making tech language accessible, communicating clearly, keeping things simple, and more.
freecodecamp.org/news/system…
Gridi Kono retweeted
𝗛𝗼𝘄 𝗱𝗼𝗲𝘀 𝗦𝗶𝗻𝗴𝗹𝗲 𝗦𝗶𝗴𝗻-𝗢𝗻 (𝗦𝗦𝗢) 𝘄𝗼𝗿𝗸?
Single sign-on (SSO) is an authentication process that allows a user to access multiple applications with a single login.
This is accomplished using a central authentication server that stores the user's credentials and verifies them for each application.
Here are 𝘁𝗵𝗲 𝘀𝘁𝗲𝗽𝘀 that happen if you want to access Trello by using your Google account:
1. Use the Trello login web page and select Google account as a login method
2. Trello redirects the user to the Google login page
3. User is served with the Google login page
4. The user enters their Google credentials
5. Google sends authentication info to the SSO Authorization server
6. If credentials are valid, the Authorization server returns the auth token (SAML)
7. Google sends the auth token to the Trello
8. In the last step, Trello sends the token to the Google Authorization server to validate its
9. If the token is valid, Trello will allow access to the user and store the session for future interactions
The 𝗯𝗲𝗻𝗲𝗳𝗶𝘁𝘀 of SSO are:
🔹 Improved user experience: Users do not need to remember multiple usernames and passwords.
🔹 Increased security: Users are less likely to reuse passwords across applications.
The 𝗱𝗶𝘀𝗮𝗱𝘃𝗮𝗻𝘁𝗮𝗴𝗲𝘀 are:
🔸 Single point of failure: One of the most notable disadvantages is that SSO creates a single point of failure. The attacker could access all connected applications and services if the SSO system is compromised.
🔸Security risks: If credentials are compromised, the security of all connected applications could be at risk.
Some 𝗰𝗼𝗺𝗺𝗼𝗻 𝘁𝘆𝗽𝗲𝘀 𝗼𝗳 𝗦𝗦𝗢 are:
🔹 𝗦𝗔𝗠𝗟-𝗯𝗮𝘀𝗲𝗱 𝗦𝗦𝗢: This is the most common type of SSO. It uses the SAML protocol to exchange authentication information between the SSO server and applications.
🔹 𝗢𝗔𝘂𝘁𝗵 𝟮.𝟬: It provides delegated access to server resources on behalf of a resource owner. It specifies how tokens are transferred, allowing an IDP to authenticate a user's identity and for the credentials to be used to access APIs.
🔹 𝗢𝗽𝗲𝗻𝗜𝗗 𝗖𝗼𝗻𝗻𝗲𝗰𝘁: This is a newer type of SSO based on OAuth 2.0. It is a simpler protocol than SAML and easier to integrate with web applications.
Some 𝗽𝗼𝗽𝘂𝗹𝗮𝗿 𝗦𝗦𝗢 𝘀𝗼𝗹𝘂𝘁𝗶𝗼𝗻𝘀 are:
🔹 Azure Active Directory
🔹 Okta
🔹 Ping Identity
🔹 OneLogin
🔹 Google Cloud Identity Platform
👉 Learn more about it: newsletter.techworld-with-mi…
Gridi Kono retweeted
Semantic search explained simply.
Here are the 5 steps to implement vector search:
1) You have to start with some data. In my case, this data comes from the articles I've written over the years on my blog.
2) Then we need an embedding model. Amazon Bedrock offers many to choose from. But you can use OpenAI, Ollama, or whatever else you want.
3) You use an embedding model to convert text into vectors. Vectors are numerical representations of your data that capture semantic meaning.
4) Finally, we store these vectors. I used an S3 Vector Bucket, a new type of S3 bucket designed specifically for vector storage and search.
5) When someone searches, we convert their query into a vector and find the closest matches in the bucket.
If you want to learn about the full implementation details, check out this article: milanjovanovic.tech/blog/bui…
A cool feature you can add with semantic search: recommendation systems.
When someone searches for something on your website, you can recommend similar results that might interest them.
---
Sign up for the .NET Weekly with 74K+ other engineers, and get a free Clean Architecture template: milanjovanovic.tech/template…
Gridi Kono retweeted
As far as I can tell, this is very well written. I've never found something in react that seemed so clean. It's probably because it's also a starting point, but it really does have a lot of functionality, it's not just a hello world. github.com/vercel/ai-chatbot
Gridi Kono retweeted
This book just arrived 📖, and I'm excited to dive in for new insights on using #WindowsServer 2025 for customer, home, and demo setups 💻.
🔗 tinyurl.com/msk8aakk
#Microsoft #W2K25 #Packt #AlwaysLearning – at Antwerp, Belgium
Gridi Kono retweeted
Microservices need to talk to each other.
How you implement this can make or break your system.
Here's a real-world example.
- Creating an order
- Processing the payment
- Reserving the inventory
- And any steps that come after
The flow can fail at any point. How do you recover?
The Saga pattern solves the problem of long-running distributed transactions.
You could implement this with MassTransit's state machine saga:
- State definitions and events
- Event-driven transitions
- Error handling
- Persistence
Want to see how to implement this?
Check out my article: milanjovanovic.tech/blog/imp…
P.S. I also included the complete source code for this example.
Gridi Kono retweeted
𝗔𝗣𝗜 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 𝗥𝗼𝗮𝗱𝗺𝗮𝗽
Whether you're a beginner or an experienced developer looking to learn about API, this comprehensive API learning roadmap will guide you through the key concepts and technologies you need to master.
𝟭. 𝗜𝗻𝘁𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻 𝘁𝗼 𝗔𝗣𝗜𝘀
🔹 API Definition: An API is a set of protocols, routines, and tools for building software applications. It specifies how software components should interact.
🔹 API Types:
🔸 Public APIs: Open for use by external developers (e.g., Twitter API)
🔸 Private APIs: Used internally within an organization
🔸 Partner APIs: Shared with specific business partners
🔸 Composite APIs: Combine multiple data or service APIs
𝟮. 𝗔𝗣𝗜 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲𝘀
🔹 REST (Representational State Transfer): A widely used architectural style for web APIs
🔹 GraphQL: A query language for APIs that allows clients to request specific data
🔹 SOAP (Simple Object Access Protocol): A protocol for exchanging structured data
🔹 gRPC: A high-performance, open-source framework developed by Google
🔹 WebSockets: Enables full-duplex, real-time communication between client and server
🔹 Webhook: Allows real-time notifications and event-driven architecture
𝟯. 𝗔𝗣𝗜 𝗦𝗲𝗰𝘂𝗿𝗶𝘁𝘆
🔹 Authentication: Basic, OAuth 2.0, JSON Web Tokens (JWT)
🔹 Authorization: Controlling access rights to resources
🔹 Rate Limiting: Preventing abuse by limiting the number of requests
🔹 Encryption: Protecting data in transit using HTTPS
𝟰. 𝗔𝗣𝗜 𝗗𝗲𝘀𝗶𝗴𝗻 𝗕𝗲𝘀𝘁 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲𝘀
🔹 RESTful conventions: Using HTTP methods correctly, proper resource naming
🔹 Versioning: URI versioning (e.g., /v1/users), Query parameter versioning (e.g., /users?version=1), Header versioning (e.g., Accept: application/vnd. company. v1+json).
🔹 Pagination: Efficiently handling large datasets
🔹 Error Handling: Proper use of HTTP status codes and informative error messages
𝟱. 𝗔𝗣𝗜 𝗗𝗼𝗰𝘂𝗺𝗲𝗻𝘁𝗮𝘁𝗶𝗼𝗻
🔹 Swagger/OpenAPI Specification: A standard for describing RESTful APIs
🔹 Postman: A popular tool for API development and documentation
🔹 ReDoc: A tool for generating beautiful API documentation
𝟲. 𝗔𝗣𝗜 𝗧𝗲𝘀𝘁𝗶𝗻𝗴
🔹 Postman: Allows creating and running API tests
🔹 SoapUI: A tool for testing SOAP and REST APIs
🔹 JMeter: Used for performance and load testing
🔹 API Mocking: Tools like Mockoon or Postman's mock servers for simulating API responses
𝟳. 𝗔𝗣𝗜 𝗠𝗮𝗻𝗮𝗴𝗲𝗺𝗲𝗻𝘁
🔹 API Gateways: Azure API Management, AWS API Gateway, Kongk, Apigee.
🔹 Lifecycle Management: Postman Collections, RapidAPI, Akan.
🔹 API Analytics and Monitoring: Moesif. Datadog, ELK Stack (Elasticsearch, Logstash, Kibana)
𝟴. 𝗜𝗺𝗽𝗹𝗲𝗺𝗲𝗻𝘁𝗮𝘁𝗶𝗼𝗻 𝗙𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸𝘀
🔹 Python: Flask, Django REST framework, FastAPI
🔹 JavaScript: Express.js
🔹 Java: Spring Boot
#softwareengineering #programming #api
































