- Hungry Minds
- Posts
- ๐๐ง Discord Cut 40% WebSocket Latency Using This
๐๐ง Discord Cut 40% WebSocket Latency Using This
PLUS: Meta's AI Hardware ๐ฎ, Interview Graph Algorithms ๐งโ๐, How Netflix Does Load Shedding ๐จ๐ปโ๐ป
Happy Monday! โ๏ธ
Welcome to the 568 new hungry minds who have joined us since last Monday!
If you arenโt subscribed yet, join smart, curious, and hungry folks by subscribing here.
๐ THIS WEEKโS MENU ๐ฅ
๐ Software Engineering Articles
Discover how Discord reduced web socket traffic by 40%.
Learn Netflix's approach to load shedding for resilient streaming.
Master essential graph algorithms to ace coding interviews.
Strategic insights on planning software projects effectively.
Identify undesirable engineer behaviors and how to avoid them.
How to ship secure and tested code 101
๐๏ธ Tech and AI Trends
Jony Ive confirms he's collaborating with OpenAI on a new device.
Llama 3.2 introduces multimodal capabilities for enhanced AI interactions.
Redis users are exploring alternatives due to licensing changes.
๐จ๐ปโ๐ป Coding Tip
Use discriminated unions in TypeScript for type-safe data modeling and operations.
Reading time: 5 minutes
A few words from this weekโs sponsor:
Want SOC 2 compliance without the Security Theater?
Get the all-in-one platform for SOC 2
Build real-world security ๐ช
Penetration testing, compliance software, 3rd party audit, & vCISO
Food for Thought
A mindset, an example, and an action item to start the week
"Build your own dreams, or someone else will hire you to build theirs."
Mindset: This quote inspires you to take control of your future and build a life aligned with your passions, not someone else's.
Example: Apple co-founder Steve Jobs exemplified this quote, leaving a corporate job to create a revolutionary tech company that changed the world.
Action: Carve out 30 minutes today to brainstorm your biggest dreams and start outlining a concrete plan to make them a reality.
The Rabbit Hole
Deep dives, trends, and resources curated to stay ahead
๐พ SIDE DISHES ๐พ
ESSENTIAL (fomo no more)
How to cope with technology FOMO
GITHUB REPO (math made pretty)
Animation engine for explanatory math videos
ARTICLE (chaotic intro)
Introduction to Chaos Engineering
ARTICLE (arc your browser)
Gaining access to anyone's browser without them even visiting a website
ESSENTIAL (senior wisdom)
On Being A Senior Engineer
ESSENTIAL (concurrency madness)
What makes concurrency so hard?
ARTICLE (rusty reflections)
One year of Rust in production
ARTICLE (not all that public)
No One Builds in Public
ARTICLE (latency life hacks)
Optimizing for High Latency Environments
ARTICLE (flagging features like a pro)
Implementing Feature Flagging with the Next.js App Router
ARTICLE (on-call newbie tips)
What I tell people new to on-call
ARTICLE (moving from redis to sqlite)
Rearchitecting: Redis to SQLite
ESSENTIAL (design lessons learned)
4 Software Design Principles I Learned the Hard Way
The Weekly Digest
Software, AI, and startup news worth your time
Brief: Jony Ive and OpenAI CEO Sam Altman are teaming up on an AI hardware project that aims to leverage generative AI, with ambitions for $1 billion funding and a design led by Ive's company, LoveFrom.
Brief: Llama 3.2 introduces new multilingual and multimodal AI models, offering flexible deployment, enhanced performance, and diverse use cases for developers on various platforms.
Brief: Meta's Ray-Ban smart glasses may be positioned to lead the AI wearable revolution, successfully integrating style, practicality, and essential features despite past failures in the sector.
Brief: A recent survey indicates 70% of Redis users are exploring alternatives due to the shift to less permissive licensing, sparking interest in Valkey and other FOSS options.
Brief: Richmond, VA, opens the world's first indoor vertical farm dedicated to strawberries, projected to produce 4 million pounds annually, leveraging innovative techniques to combat food scarcity and environmental issues.
Brief: Blue Origin's GS2 hot-fire test for the New Glenn rocket marks a significant milestone as the company prepares for a November launch amid potential challenges in vehicle integration and weather conditions.
Brief: A condensed summary of Ilya Sutskever's AI reading list offers insights into foundational papers and concepts essential for mastering deep learning, from CNNs and RNNs to the Transformer architecture and information theory.
The Quick Byte
One coding tip because youโre technical after all
This weekโs coding challenge:
This weekโs tip:
The Discriminated Unions feature in TypeScript
is a powerful technique for modeling complex data structures and handling type-safe operations on them.
Wen?
Improved Type Safety: Discriminated Unions provide a type-safe way to represent and work with heterogeneous data structures, reducing the risk of runtime errors and making your code more robust.
Expressive and Readable Code: By using a common discriminating property (the
type
field in the example), the structure of your data becomes more explicit and easier to understand.Compiler-Assisted Refactoring: When working with Discriminated Unions, the TypeScript compiler can provide valuable assistance during refactoring, ensuring that all relevant cases are updated consistently across your codebase.
Burp-A-Laugh
The most important meal of your day
Thatโs it for today! โ๏ธ
Enjoyed this issue? Send it to your friends here to sign up, or share it on Twitter!
If you want to submit a section to the newsletter or tell us what you think about todayโs issue, reply to this email or DM me on Twitter! ๐ฆ
Thanks for spending part of your Monday morning with Hungry Minds.
See you in a week โ Alex.
Icons by Icons8.
*I may earn a commission if you get a subscription through the links marked with โaff.โ (at no extra cost to you).