Skip navigation
Toggle Sidebar

Web Hits Aggregator - Connector for PHP


Project Description A generic connector providing PHP support for GigaSpaces XAP capabilities including Take, TakeMultiple, Read, ReadMultiple, Write, Lease and Transaction.
Current Project Version 1.0
Project Maturity Beta
Project License Apache Licnese 2.0
Compatible GigaSpaces XAP Version GigaSpacesXAP6.02
Project Captain Moshe Kaplan
Contributors Moshe Kaplan

Project Sitemap

Project Homepage

Features and Capabilities

As part of a project for a Web 2.0 company, which focuses on the Affiliate Junction market, Rocketier developed a generic connector from PHP to GigaSpaces XAP. The company's product serves as a hub which connects advertisers and publishers in a unique proprietary model, tracking and billing ad views, ad clicks and resulting sales in affiliate networks. The software was originally developed using PHP, however, once the number of customers started to grow, the product hit severe performance and scalability issues. The main bottleneck in the product was the ad view counting mechanism which effectively limited the software to an upper bound of 1M hits per day. Instead of replacing the entire product, Rocketier focused on the performance critical business processes and developed a backend Gigaspaces module, responsible for counting the ad views and clicks. This module was integrated into the software using a custom designed PHP connector, employing COM+ technology. The new solution is easily scaled up and out and can support the company's growing customer base up to 200M hits per day.

Focusing on the connector itself, the .Net/C# COM+ solution supports the major Gigaspaces interfaces: Take, TakeMultiple, Read, ReadMultiple, Write, Lease and Transaction. Native Variable Passing and Serialization is supported using JSON, which is native to PHP, and using the Json.NET library in C#. Configuration and Space decision is achieved through a space configuration method. Deserialization is supported using a separate class which can be configured separately for each business case.

This solution enabled the company to meet its business needs in a short period of time, while keeping a low risk factor due to the fact that only the performance critical business processes were replaced. The chosen technological solution added grid support to the PHP-based product, including: PHP and GS mediation (the aforementioned connector), application persistence, session based continuity, asynchronous programming capabilities and presentation and business logic separation.

To sum up, the company was able to leverage its existing investment and migrate evolutionarily from an initial prototype to a heavy load, production level solution (from Beta to a Post Digg Effect system), in a short time to market and with minimal risk.

Adaptavist Theme Builder Powered by Atlassian Confluence