Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My Knowledge
blog and Updates

It's my personal blog and my post about what was my interested in. Not regularly. If you have any questions any discussion, I'm happy you get in touch with me, and try to answer as many as possible!

Blog
Let's See
Back to blog
Filter by:
Tags
//Article

Race Conditions Explained With a Bank Account: Where the Missing Money Went

Race Conditions Explained With a Bank Account: Where the Missing Money Went

Blog Summary

Two withdrawals hit an account at the same moment. Both succeed, and money disappears. Here's how a lost update happens, and four ways to stop it in Laravel: atomic updates, row locks, version checks and unique constraints.

Read more
  • 137
  • 43
  • 25

Big O Notation for Working Developers: Finding the Loop That Doesn't Scale

Big O Notation for Working Developers: Finding the Loop That Doesn't Scale

Blog Summary

Big O isn't interview trivia. It's the reason code that handles 200 rows times out at 20,000. Here's a practical guide with real examples: hidden nested loops, database indexes, N+1 queries, and when it doesn't matter.

Read more
  • 100
  • 118
  • 23

Queues and Message Brokers Explained: Redis, RabbitMQ and SQS Without the Jargon

Queues and Message Brokers Explained: Redis, RabbitMQ and SQS Without the Jargon

Blog Summary

Your users shouldn't wait for emails, PDFs and push notifications. Here's how queues really work, why every job can run twice, what dead letter queues are for, and how to pick between Redis, RabbitMQ and SQS.

Read more
  • 126
  • 13
  • 6

What Happens Inside a PHP Request: From Apache to Your Laravel Controller

What Happens Inside a PHP Request: From Apache to Your Laravel Controller

Blog Summary

Your controller is the last stop on a surprisingly long trip. Follow one request from Apache through PHP-FPM, Laravel's bootstrap, middleware and the router, and see why PHP rebuilds everything every time and how OPcache saves it.

Read more
  • 22
  • 146
  • 10

Hashing vs Encryption vs Encoding: The One Question That Tells Them Apart

Hashing vs Encryption vs Encoding: The One Question That Tells Them Apart

Blog Summary

"The passwords are encrypted, we base64 them" contains two mistakes. Hashing, encryption and encoding solve different problems. One question tells them apart, plus why SHA-256 is wrong for passwords and bcrypt or Argon2id is right.

Read more
  • 111
  • 145
  • 12

TCP vs UDP: Why Video Calls and Web Pages Use Different Protocols

TCP vs UDP: Why Video Calls and Web Pages Use Different Protocols

Blog Summary

A slow web page makes you wait, a bad video call just drops a word. That's TCP and UDP at work. Here's how each one handles packet loss, why head-of-line blocking matters, and how QUIC and HTTP/3 fit in.

Read more
  • 25
  • 57
  • 8

01. About Shiroz

Mohammed Shiroz

Hi, I'm Mohammed Shiroz, a software engineer and AI enthusiast from Sri Lanka who turns ideas into intelligent, real-world solutions. With over 9 years of hands-on experience, I currently lead real estate ERP development at Kate Group, a...

03.My Projects

04. Categories

Ready To Start Your Project ?

Get in Touch
Close