MongoDB With CodeIgniter

Today was started with a big curiosity towards Urbanesia’s recent performance drop. This week we discovered that although we have completely revamped our codes to hack CI to use MongoDB as its session storage instead of MySQL, we found that Memcache is the bottleneck. When I woke up today, I was devastated to know that it took at minimum 5.7 seconds to load any of our business profiles. So I went hunting for the source of this irritating loading time. The Memcache problem was because our Sofvia server is at its limit, we’ve pushed the CPU utilization to her max and Memcache is simply not getting enough CPU Power. The main cause is putting 2 Memcache instances in Sofvia which in turn made CPU utilizations soar. When Memcache was out of CPU resource, the server was on an endless loop with load averages sky rocketing to > 100. Reference is here. ...

December 30, 2010 · Batista Harahap

Coding with Code Igniter

Wow it’s been too long since I actually do any hands-on coding with PHP. This time I’m choosing Code Igniter as my framework of choice for an e-commerce project for one of Mediafusion’s client. [caption id=“attachment_287” align=“alignnone” width=“423” caption=“My Dreamweaver with CI Controller Codes”][/caption] After these past few weeks dwelling with complicated Java and all its glory, going back to my comfort zone, it felt great! I really feel that this is the right time to code in PHP again. It’s already giving me more coding confidence with Java. I mean if you’re stuck, go back to your roots and you might learn a thing or two to inspire you. ...

April 30, 2010 · Batista Harahap