Menu

1 / 2

The Media Architecture Problem: How I Went from 80,000 Lines to 1,895

DEV Community·mathavan jeyadev·6 months ago
#Hom2ncbW
#webdev#systemdesign#code#every#file
Reading 0:00
15s threshold

Not a refactor. Not a rewrite. A rethink.

And the security improvement was not something I planned. It was a consequence of thinking about the problem correctly.

The Mess That Grew in Silence

Our platform handles media for everything.

User profile pictures. Maintenance job photos. Lease agreements. Inspection reports. Tenancy documents. Contract files. Management agreements. Entry condition reports. Exit condition reports.

Each one slightly different. Some allow multiple files. Some allow only one. Some need a featured image. Some need ordering. Some go to FTP. Some display as a gallery. Some render inline as a PDF. Some generate secure download links.

Over ten years, every developer who touched a new media requirement wrote new code for it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.