Services Provider?
• Dedicated Server in Viet nam
• Private cloud
• Docker
• VPS Provider in Vietnamese
• Amazon Web Service
• Digital Ocean / Linode
• VPS in Local Provider
3.Caching - increasing cache hit
$candidates = Campaign for
• Active campaigns
• Allow Android 4.0.1
• Allow Vietnam
• Not gambling
• CPI or CPC
• IF CPC: PRICE > $0.03
• IF CPI: PRICE > $0.5
• Did not install this game / app
…
Candidates = Campaign for
• Active Campaigns
• Allow Vietnam
Candidates = Filter(Candidates)
• Allow Android 4.0.1
• Not gambling
• CPC or CPC
…
Cache read through issue!!!
function getData($id)
{
$data = getDataFromCache($id);
if (!empty($data) {
return $data;
}
$data = getDataWithoutCache($id);
setDataToCache($id, $data, $exprire_time);
return $data;
}
4. Asynchronous
• Send a external HTTP request
• Send a email
• Working with file
• Working with DB
• …