The Network Bits (@thenetworkbits) header
The Network Bits (@thenetworkbits) profile picture

Twitter page for The Network Bits newsletter. Networking, cloud, related technologies. https://xitter.cf/t.co/Qq32XRYdc9

Joined May 2022
Photo by The Network Bits (@thenetworkbits)Photo by The Network Bits (@thenetworkbits)Photo by The Network Bits (@thenetworkbits)Photo by The Network Bits (@thenetworkbits)Photo by The Network Bits (@thenetworkbits)Photo by The Network Bits (@thenetworkbits)Photo by The Network Bits (@thenetworkbits)Photo by The Network Bits (@thenetworkbits)Photo by The Network Bits (@thenetworkbits)Photo by The Network Bits (@thenetworkbits)
The Network Bits retweeted
Replying to @4nsdp
Because the default header {"alg":"HS256","typ":"JWT"} base64url-encodes to eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... Every JWT starts with “ey” unless you use a weird header!
4
56
22,333
The Network Bits retweeted
This is an atomicity failure. And the fix is simple if you know it. Whether you're on Prisma, TypeORM, Sequelize, or raw SQL, the rule is the same: Any operation touching more than one record? Wrap it in a transaction. If one part fails, everything rolls back. Nobody loses a kobo.
5
9
135
20,530
The Network Bits retweeted
Interviewer: If a user uploads a 5GB file but loses internet halfway, how should the backend handle resuming the upload?
250
211
40
7,024
1,110,671
The Network Bits retweeted
Most asked DevOps interview Q: How to make Docker containers lightweight ? (Real-world DevOps practice) Here’s how I keep my Docker images small & production-ready 👇 Why lightweight containers matter : - Faster container startup - Quicker image pulls & deployments - Lower storage & memory usage - Better cloud performance + cost efficiency 📢Best practices I follow: 1️⃣ Use small base images → Prefer alpine or slim instead of full OS images 2️⃣ Multi-stage builds → Separate build & runtime stages so only required artifacts go into final image 3️⃣ Install only what’s needed → No extra tools in production images 4️⃣ Clean cache files → Remove package manager caches to reduce image size 5️⃣ Minimize Docker layers → Combine commands to keep images clean & small 6️⃣ Use .dockerignore → Prevent unnecessary files from entering the image 7️⃣ Avoid running as root → Improves container security. I’m actively applying these techniques while building real-world Docker & DevOps projects. Please add anything if I missed its a learn in public anyone can add any point. Save this if you work with Docker 🔁 Repost to help others ship better containers.
33
213
6
1,710
94,014
NETWORK PLUS DAILY
9
5
3
50
6,680
The Network Bits retweeted
Caching (Redis, Memcached) What is Caching? Caching is the process of storing frequently accessed data in a temporary storage (cache) so future requests can be served faster. Instead of querying the database every time, the system retrieves data from the cache, reducing response time and server load. Why Caching is Important → Improves application performance. → Reduces load on the database. → Enhances scalability and user experience. → Useful in real-time applications where speed is critical. Redis Redis (Remote Dictionary Server) is an open-source, in-memory data store often used as a cache, database, and message broker. → Stores data in key-value pairs. → Supports complex data structures like lists, sets, and hashes. → Provides persistence options (data can be saved to disk). → Commonly used in session storage, leaderboards, and pub/sub systems. Advantages of Redis → Very fast (in-memory). → Rich data types and features. → Persistence support (RDB, AOF). → Suitable for real-time analytics. Memcached Memcached is a high-performance, in-memory caching system designed for simplicity and speed. → Stores data in key-value pairs. → Focuses only on caching (no persistence, fewer data structures). → Commonly used for caching database queries, HTML fragments, or session data. Advantages of Memcached → Simple and lightweight. → Extremely fast read/write operations. → Scales horizontally across multiple servers. Redis vs Memcached → Redis: Feature-rich, supports persistence and advanced data types. → Memcached: Lightweight, purely focused on caching. → Redis: Best for applications needing caching + extra functionality. → Memcached: Best for simple caching with minimal overhead. Real-World Examples → Redis: Storing user sessions in large-scale apps like Twitter. → Memcached: Caching product details on e-commerce sites for faster page loads. Download The Backend Ebook ( it covers everything above and more) codewithdhanian.gumroad.com/…
12
310
5
2,011
105,716
The Network Bits retweeted
How Does SSO Work?
18
172
4
1,007
95,082
The Network Bits retweeted
Git crash course
9
211
4
1,375
131,064
The Network Bits retweeted
Full-Stack Developer’s 2025 Tech Stack • Frontend → React / Next.js / Vue.js • Backend → Go / Rust / Spring Boot / Node.js / Django • Database → PostgreSQL / MySQL / MongoDB • Authentication → JWT + Refresh Tokens / OAuth 2.0 • Infrastructure → Docker + Kubernetes / Nginx as Reverse Proxy • CI/CD → GitHub Actions / GitLab CI / Jenkins • Additional Tools → Redis (Caching), Kafka (Event Streaming), GraphQL (APIs) 📘 Ebook: Mastering Full-Stack Development in 2025 🔗 codewithdhanian.gumroad.com/…
11
78
1
539
37,394
The Network Bits retweeted
Free Computer Science Certifications to try in 2025: 🔸GIT simplilearn.com/learn-git-ba… 🔸Python mygreatlearning.com/academy/… 🔸SQL cognitiveclass.ai/courses/le… 🔸DSA mygreatlearning.com/academy/… 🔸Java openclassrooms.com/en/course… 🔸JavaScript openclassrooms.com/en/course… 🔸C alison.com/course/c-programm… 🔸C++ alison.com/course/introducti… 🔸Data Science simplilearn.com/data-science… 🔸Machine Learning simplilearn.com/learn-machin… 🔸Google Data Analytics Certificate imp.i384100.net/0ZOBkL 🔸Deep Learning kaggle.com/learn/intro-to-de… 🔸Linux mygreatlearning.com/academy/… 🔸DevOps openclassrooms.com/courses/7… 🔸SQL cognitiveclass.ai/courses/le… 🔸SQL for Data Science imp.i384100.net/oqJLJE 🔸PostgreSQL freecodecamp.org/learn/relat… 🔸MySQL simplilearn.com/free-online-… 🔸SQL Server learn.microsoft.com/training… 🔸Oracle mygreatlearning.com/academy/… 🔸Full Stack Web pll.harvard.edu/course/cs50s… 🔸Meta Back-End Developer Professional Certificate imp.i384100.net/WqrGoX 🔸Meta Front-End Developer Professional Certificate imp.i384100.net/21q32O 🔸Programming with JavaScript imp.i384100.net/oq3WV9 🔸Linux mygreatlearning.com/academy/… 🔸DevOps openclassrooms.com/courses/7… 🔸CI/CD simplilearn.com/free-ci-cd-o… 🔸Docker cognitiveclass.ai/courses/do… 🔸Web Applications for Everybody Specialization imp.i384100.net/PykjzR 🔸Kubernetes simplilearn.com/learn-kubern… 🔸HTML, CSS, and Javascript for Web Developers imp.i384100.net/MmjnAM
15
436
9
1,884
176,222
The Network Bits retweeted
SSH Under the Hood
5
244
4
1,871
263,811
#CloudNative Roundup: Past Week's Top 5! A Thread 🧵
1
1
1
113
The Network Bits retweeted
ATT Backbone circa 2000 Some stuff was just DS3! :)
3
3
1
24
3,043
The Network Bits retweeted
Many sleepless nights on one wall..
8
2
79
3,677
The Network Bits retweeted
Linux IP command Cheat Sheet
5
329
3
1,433
165,510
The Network Bits retweeted
A new Amazon warehouse article popped up in my feed - am I the only one that sees a giant network switch being built? 😂
65
68
11
867
36,031
The Network Bits retweeted
A senior colleague I met at an AWS gathering called me today to ask if I had an idea on how to use S3 for backup/sync purposes. I sent him a link to my article where I addressed that. He just replied me now that it’s working. I feel soo proud of myself.
7
8
1
87
3,223
Check out the latest article in my newsletter: DNS - A Deep Dive linkedin.com/pulse/dns-deep-… via @LinkedIn
1
36
The Network Bits retweeted
8 Ports mostly used by Hackers *Port 21- File Transfer Protocol (FTP) *Port 22- Secure Shell (SSH) *Port 23- Telnet *Port 25- Simple Mail Transfer Protocol (SMTP) *Port 53- Domain Name System (DNS) *Port 69- TFTP *Port 135- Windows RPC *Port 137-139- Windows NetBIOS over TCP/IP
4
191
527
39,312
The Network Bits retweeted
Cisco Standard ACL Configuration..! . CCNP 350-401 Course: ipcisco.com/course/ccnp-enco… . Please ReTweet..:) . #ccna #networksecurity #ccie #cisconetworking #Cisco #networkengineer #routers . From @cisco docs.
7
37
1,727