Upload
batista-harahap
View
725
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Combining the best of both worlds into Urbanesia's infrastructure :)
Citation preview
Urbanesia & MicrosoftTechnologies
SQL on PHP @ MicrosoftBatista Harahap
@tista / bango29.com7 July 2012
DESIRED AIMSWhat Urbanesia wants
RELEVANCY&
CONTEXT
TECHNICAL OVERVIEWWhere do we come from and
where we want to be in the future
Single application/database Server
Technologies
• CentOS Linux• MySQL• Sphinx Search• CodeIgniter (PHP)• Memcache
Caveats
• 20+ Seconds Queries in warm boots• Low concurrency• MySQL Query Performance• Horizontal scalability (Expensive)• Memory, CPU & Disk hungry• No separation of frontend & backend apps
What to do?
Application & Database Server Separation
What we did
• Recoded 60% of Urbanesia• Initial process took ~1 month• Query hunting to optimize MySQL queries• Slimmed down to 18 controllers & 800 lines of
core controller• Separated database & application• Built a comprehensive API for our backend
What we got
• Increased concurrency• Insignificant warm boot time• 1 month turned to 1 year to 2 years to …• A codebase that is difficult to maintain• Slow learning curves for new recruits• Lack of focus infrastructure wise
MICROSOFT TECHNOLOGIESWhat changed our perspectivetowards technology platforms
Challenges
• Urbanesia have no prior Microsoft experience• Design Patterns• Best Practices• Choosing which technology• TCO and other expenses
Microsoft Open
• Open Source technologies on top of Microsoft platform
• Hands on consultation with trusted advisor from Infinys Cloud with Dondy Bappedyanto
• Introduced to .NET and SQL Server
Solution
• Complete backend redesign & development using .NET 4.0 with WebAPI
• Abstract layers within the design to support potential migration to SQL Server
• Instead of CRUD cache invalidations, we implemented monitors
Solution
BENEFITSWhat do we get from this?
Benefits
• 33% productivity increase translating to only 2 months development time for our backend
• More time to focus on the product itself• Implementing best practices from day 0• More structured approach to finally build BI
solutions• Invest more in memories, way cheaper than
servers
CLOSING REMARKSOur experiences combining
the best of both worlds
Closing Remarks
• Microsoft’s backend technology is unmatched, especially the IDE (Visual Studio) is really powerful
• Open Source’s frontend technology is unmatched in terms of new tech adoption, developer awareness and community support
• Both combines into happy developers, product focus and business as usual