Also added a thread safe round robin algorithm to distribute connections across backend servers with bidirectional worker threads doing 4KB buffer chunking so memory doesn't blow up under load.
Building a Layer 4 Load Balancer from scratch in Java.
Built a transport-layer proxy that uses a dual socket architecture to stream raw bytes between clients and a backend cluster.
#Java#Backend
Backend is my main focus right now but i still love to build mobile apps and taking on freelance gigs.
Wanted to share with you guys that i have successfully published a freelance android app directly to the google play store. Feeling quite good.
#MobileAppDevelopment
upgraded my my REST api router with background tasks and error handling exception
but real thing i got to know why huge apps use Java NIO and event loops when i maxed out my server's single thread acceptor
#Java#Backend#SystemDesign
upgraded my REST api router to use multithreading and trying to hit race conditions to see its working.
Fixed thread collision with atomic variables but when tested with 50k concurrent requests my os ran out network buffer space and started dropping connections
#Java#Backend
its been long time since i wrote unit testing
today wrote unit testing for my custom REST api router in java and used mockito to create fake network sockets for testing.
#Java#Backend#SystemDesign#Testing