SlideShare a Scribd company logo
1 of 5
Download to read offline
1	
High	Speed	Data	Center	(HSDC)	Architecture	of	Afmobi	Group	
BRIEF	 	
There are more than 10 billion transactions per day and more than ten million
activity users per month, as a large social network app with more than hundred
million subscribers in Africa, how can we deal with a huge instant messages
immediately?
Alan	Kao	
CTO	at	Afmobi	
	
ABOUT	Afmobi	
Established	 in	 2010,	 Afmobi	 is	 a	 mobile	 internet	 service	 developer	 that	 is	
headquartered	 in	 Shenzhen,	 China.	 The	 service	 is	 strategically	 focused	 on	 the	
development	 of	 African	 mobile	 internet	 services,	 with	 products	 that	 include	 the	
Palmchat	IM,	PalmPlay	app	store,	Af1234.com,	PalmMusic	music	player,	PalmCoin	for	
Palmpay,	among	others	and	is	stationed	in	four	African	branches	in	Nairobi-Kenya,	
Lagos-Nigeria,	 Accra-Ghana,	 and	 Addis	 Ababa-Ethiopia.	 Afmobi’s	 main	 priority	 in	
Africa	is	to	promote	and	build	a	mobile	internet	eco-system	and	create	a	way	for	the	
people	in	Africa	to	communicate	with	the	world.	
THE	CHALLENGE	
“In	 the	 beginning,	 we	 evaluated	 several	 queue	 mechanisms	 such	 as	 MySQL,	
Oracle,	…	for	the	SQL-like	system	and	MongoDB,	HBase,	…	NoSQL-like	system	in	early	
2010.”,	says	Alan	Kao,	CTO	at	Afmobi.	“We	met	a	lot	of	trouble	things	in	that	time.	Cost	
and	performance	are	the	main	problems.	Although	most	of	Afmobi’s	users	are	in	Africa	
and	use	feature	phones,	the	instant	response	is	still	the	main	factor	we	should	solve.”
2	
The	other	thing	is	that	we	support	more	than	8	platforms	at	the	same	time,	including	
Android,	iOS,	Symbian,	J2ME,	WAP,	MRE,	BB57,	WinOS	and	BB10.	How	can	we	manage	
them	by	different	program	language?	At	last,	we	developed	in-house	message	queue	
named	HSDC	and	provided	C/C++,	PHP,	Java	and	Python	for	internal	use.	
HOW	IT	WORKS	
Instant	 and	 accurate	 message	 delivery	 rate	 is	 the	 core	 of	 a	 successful	 social	
network	app,	especially	for	huge	subscribers.	We	only	use	less	than	20	vPCs	to	deal	
with	the	messages	due	to	serialization	message	preprocessor	via	Core	Server.	And	we	
used	a	sequential	fast	queue	method	to	notification	the	queue	list.	“It	was	a	highly	
efficient	design	in	that	moment.	We	developed	in	C	program	language	and	optimized	
many	 message	 notification	 channels	 for	 internal	 control.”,	 explains	 Alan.	 A	 brief	
message	picture	illustrates	below:	
	
Figure 1: Internal Process
	
DETAIL	FLOW	CHART	
The	figure	below	illustrates	detail	working	flow:
3	
Core-Server
#1
HSDC
HSDB
UpLink
Channel
Module
DownLink
Channel
Module
Core-Server
#2
A1
B1
A2
B2
…
…
…
…
Send
Receive
Send
Receive
Figure 2: Connection Diagram between Core-Server, HSDC and HSDB(DataBase).
Connection flow:
1. Core-Server #1 (CS1) connect to UpLink channel of HSDC, when the connection is established (A1), HSDC will
inform DownLink channel.
2. DownLink channel will establish a connection to CS1’s receiving port (B1).
3. When B1 is established, DownLink channel will inform UpLink that “We are ready”, after this, CS1 can start to use
the service of HSDC.
The UpLink Channel Module will handle the data retrieving from Core-Server, and DownLink will response for
sending data back to Core-Server.
For services like IM text messages, DownLink Module will also monitor the user location and where the text
messages should go. It’s a response for exchange data between CS1 and CS2 (or said CSN).	
PACKAGE	STRUCTURES	
Send	Structure	
typedef struct IM_TextMsg_SEND_PACKET {
// packet header
im_packet_header header;
4	
// packet content
uint32_t LEN_MSG_SENDER;
char MSG_SENDER_MSISDN[16];
uint32_t LEN_MSG_RECVER;
char MSG_RECVER_MSISDN[16];
char MSG_TYPE;
// 0x00:1-to-1 private message
// 0x01:1-to-1 public message
// 0x06:1-to-N private chat room
// 0x07:1-to-N public chat room
uint32_t LEN_MSG_CONTENT;
char *MSG_CONTENT; // Printable Base64 text pointer
} im_textmsg_send_packet;
Receive	Structure	
typedef struct IM_TextMsg_RECV_PACKET {
im_packet_header header;
uint32_t LEN_MSG_OWNER;
char MSG_OWNER_MSISDN[16];
uint32_t NUMBER_OF_MSGS; // How many messages
uint32_t LEN_ALL_MSGS; // The length of ALL_MSGS
char *ALL_MSGS[LEN_ALL_MSGS];
// Printable Base64 text string
} im_textmsg_recv_packet;
THE	BENIFITS	
Since	 the	 foresight	 design	 of	 core	 architecture,	 Afmobi	 is	 able	 to	 execute	 its	
growth	and	expansion	plans	across	a	range	of	developing	markets,	especially	in	pan-
Africa.	“The	subscribers	of	Palmchat	increased	to	hundred	million	in	early	2016	and
5	
the	message	amounts	are	more	than	several	millions	per	day.	It	is	really	real	time.”,	
says	Alan.	
Afmobi	has	achieved	these	outcomes	while	maintaining	availability	levels	at	more	
than	 99%,	 ensuring	 its	 services	 are	 available	 when	 customers	 needs	 them	 and	
eliminating	heterogeneous	devices	difference.	
The	best	cost	performance	is	original	the	best	algorithm	and	we	did	it.	Afmobi	
believes	deeply	if	we	keep	on	going,	we	will	offer	the	best	social	network	services	in	
Africa	forever.

More Related Content

Similar to HSDC of Palmchat

Unit 1 Intersystem CommunicationsCOP4858 PROGRAM & TECH ENH.docx
Unit 1 Intersystem CommunicationsCOP4858 PROGRAM & TECH ENH.docxUnit 1 Intersystem CommunicationsCOP4858 PROGRAM & TECH ENH.docx
Unit 1 Intersystem CommunicationsCOP4858 PROGRAM & TECH ENH.docx
willcoxjanay
 
Building Construction Project Summary
Building Construction Project SummaryBuilding Construction Project Summary
Building Construction Project Summary
Michelle Madero
 
Internet on Mobile
Internet on MobileInternet on Mobile
Internet on Mobile
cassyp
 
Patton-Fuller Community Hospital Networking Paper
Patton-Fuller Community Hospital Networking PaperPatton-Fuller Community Hospital Networking Paper
Patton-Fuller Community Hospital Networking Paper
Jessica Tanner
 
Incomnet-LinkedInUpload
Incomnet-LinkedInUploadIncomnet-LinkedInUpload
Incomnet-LinkedInUpload
George McBride
 
Mooc And Document Orientated Nosql Database
Mooc And Document Orientated Nosql DatabaseMooc And Document Orientated Nosql Database
Mooc And Document Orientated Nosql Database
Karen Oliver
 

Similar to HSDC of Palmchat (20)

Unit 1 Intersystem CommunicationsCOP4858 PROGRAM & TECH ENH.docx
Unit 1 Intersystem CommunicationsCOP4858 PROGRAM & TECH ENH.docxUnit 1 Intersystem CommunicationsCOP4858 PROGRAM & TECH ENH.docx
Unit 1 Intersystem CommunicationsCOP4858 PROGRAM & TECH ENH.docx
 
Case Study in Building an Integrated IT and Telecom Solution Provider, Andrei...
Case Study in Building an Integrated IT and Telecom Solution Provider, Andrei...Case Study in Building an Integrated IT and Telecom Solution Provider, Andrei...
Case Study in Building an Integrated IT and Telecom Solution Provider, Andrei...
 
Building Construction Project Summary
Building Construction Project SummaryBuilding Construction Project Summary
Building Construction Project Summary
 
A Review And Research Towards Mobile Cloud Computing
A Review And Research Towards Mobile Cloud ComputingA Review And Research Towards Mobile Cloud Computing
A Review And Research Towards Mobile Cloud Computing
 
PPT on MS-CIT Unit-2
PPT on MS-CIT Unit-2PPT on MS-CIT Unit-2
PPT on MS-CIT Unit-2
 
Tcs Cloud Messaging Center
Tcs Cloud Messaging CenterTcs Cloud Messaging Center
Tcs Cloud Messaging Center
 
Cloud Messaging for Carriers and Enterprise
Cloud Messaging for Carriers and EnterpriseCloud Messaging for Carriers and Enterprise
Cloud Messaging for Carriers and Enterprise
 
Internet on Mobile
Internet on MobileInternet on Mobile
Internet on Mobile
 
WMB_DP_resume
WMB_DP_resumeWMB_DP_resume
WMB_DP_resume
 
It practical file
It practical fileIt practical file
It practical file
 
Wap
Wap Wap
Wap
 
Key management in information centric networking
Key management in information centric networkingKey management in information centric networking
Key management in information centric networking
 
Patton-Fuller Community Hospital Networking Paper
Patton-Fuller Community Hospital Networking PaperPatton-Fuller Community Hospital Networking Paper
Patton-Fuller Community Hospital Networking Paper
 
Incomnet-LinkedInUpload
Incomnet-LinkedInUploadIncomnet-LinkedInUpload
Incomnet-LinkedInUpload
 
Internet
InternetInternet
Internet
 
A New Approach to Volunteer Cloud Computing
A New Approach to Volunteer Cloud ComputingA New Approach to Volunteer Cloud Computing
A New Approach to Volunteer Cloud Computing
 
Cloud final with_lab
Cloud final with_labCloud final with_lab
Cloud final with_lab
 
MOBILE CLOUD COMPUTING –FUTURE OF NEXT GENERATION COMPUTING
MOBILE CLOUD COMPUTING –FUTURE OF NEXT GENERATION COMPUTINGMOBILE CLOUD COMPUTING –FUTURE OF NEXT GENERATION COMPUTING
MOBILE CLOUD COMPUTING –FUTURE OF NEXT GENERATION COMPUTING
 
Mooc And Document Orientated Nosql Database
Mooc And Document Orientated Nosql DatabaseMooc And Document Orientated Nosql Database
Mooc And Document Orientated Nosql Database
 
Tamer_Mohamed
Tamer_MohamedTamer_Mohamed
Tamer_Mohamed
 

More from Alan Kao

More from Alan Kao (13)

万物摸摸下巴,智慧物业这事儿可以有
万物摸摸下巴,智慧物业这事儿可以有万物摸摸下巴,智慧物业这事儿可以有
万物摸摸下巴,智慧物业这事儿可以有
 
微软声连网案例 Azure
微软声连网案例   Azure微软声连网案例   Azure
微软声连网案例 Azure
 
AWS Researching
AWS ResearchingAWS Researching
AWS Researching
 
AWS 案例研究:声连网
AWS 案例研究:声连网AWS 案例研究:声连网
AWS 案例研究:声连网
 
痛并快乐着的中小企业
痛并快乐着的中小企业痛并快乐着的中小企业
痛并快乐着的中小企业
 
二维码扫过很多,“声音二维码”你扫过吗?
二维码扫过很多,“声音二维码”你扫过吗?二维码扫过很多,“声音二维码”你扫过吗?
二维码扫过很多,“声音二维码”你扫过吗?
 
“声动派”北京站精彩再续,展示最前沿最炫酷最新鲜的科技
“声动派”北京站精彩再续,展示最前沿最炫酷最新鲜的科技“声动派”北京站精彩再续,展示最前沿最炫酷最新鲜的科技
“声动派”北京站精彩再续,展示最前沿最炫酷最新鲜的科技
 
“声动派”2017杭州站圆满收官!前沿科技思想的全新碰撞!
“声动派”2017杭州站圆满收官!前沿科技思想的全新碰撞!“声动派”2017杭州站圆满收官!前沿科技思想的全新碰撞!
“声动派”2017杭州站圆满收官!前沿科技思想的全新碰撞!
 
2017声动派(杭州站):新媒体创新技术构建新媒体生态圈
2017声动派(杭州站):新媒体创新技术构建新媒体生态圈2017声动派(杭州站):新媒体创新技术构建新媒体生态圈
2017声动派(杭州站):新媒体创新技术构建新媒体生态圈
 
声动派2017(北京站):创新声波技术促进新媒体跨界融合
声动派2017(北京站):创新声波技术促进新媒体跨界融合声动派2017(北京站):创新声波技术促进新媒体跨界融合
声动派2017(北京站):创新声波技术促进新媒体跨界融合
 
Afmobi Payment Service
Afmobi Payment ServiceAfmobi Payment Service
Afmobi Payment Service
 
HSDC 艾弗移动 中文版 (Palmchat)
HSDC 艾弗移动 中文版 (Palmchat)HSDC 艾弗移动 中文版 (Palmchat)
HSDC 艾弗移动 中文版 (Palmchat)
 
Afmobi 2016 introduction
Afmobi  2016 introductionAfmobi  2016 introduction
Afmobi 2016 introduction
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

HSDC of Palmchat

  • 1. 1 High Speed Data Center (HSDC) Architecture of Afmobi Group BRIEF There are more than 10 billion transactions per day and more than ten million activity users per month, as a large social network app with more than hundred million subscribers in Africa, how can we deal with a huge instant messages immediately? Alan Kao CTO at Afmobi ABOUT Afmobi Established in 2010, Afmobi is a mobile internet service developer that is headquartered in Shenzhen, China. The service is strategically focused on the development of African mobile internet services, with products that include the Palmchat IM, PalmPlay app store, Af1234.com, PalmMusic music player, PalmCoin for Palmpay, among others and is stationed in four African branches in Nairobi-Kenya, Lagos-Nigeria, Accra-Ghana, and Addis Ababa-Ethiopia. Afmobi’s main priority in Africa is to promote and build a mobile internet eco-system and create a way for the people in Africa to communicate with the world. THE CHALLENGE “In the beginning, we evaluated several queue mechanisms such as MySQL, Oracle, … for the SQL-like system and MongoDB, HBase, … NoSQL-like system in early 2010.”, says Alan Kao, CTO at Afmobi. “We met a lot of trouble things in that time. Cost and performance are the main problems. Although most of Afmobi’s users are in Africa and use feature phones, the instant response is still the main factor we should solve.”
  • 2. 2 The other thing is that we support more than 8 platforms at the same time, including Android, iOS, Symbian, J2ME, WAP, MRE, BB57, WinOS and BB10. How can we manage them by different program language? At last, we developed in-house message queue named HSDC and provided C/C++, PHP, Java and Python for internal use. HOW IT WORKS Instant and accurate message delivery rate is the core of a successful social network app, especially for huge subscribers. We only use less than 20 vPCs to deal with the messages due to serialization message preprocessor via Core Server. And we used a sequential fast queue method to notification the queue list. “It was a highly efficient design in that moment. We developed in C program language and optimized many message notification channels for internal control.”, explains Alan. A brief message picture illustrates below: Figure 1: Internal Process DETAIL FLOW CHART The figure below illustrates detail working flow:
  • 3. 3 Core-Server #1 HSDC HSDB UpLink Channel Module DownLink Channel Module Core-Server #2 A1 B1 A2 B2 … … … … Send Receive Send Receive Figure 2: Connection Diagram between Core-Server, HSDC and HSDB(DataBase). Connection flow: 1. Core-Server #1 (CS1) connect to UpLink channel of HSDC, when the connection is established (A1), HSDC will inform DownLink channel. 2. DownLink channel will establish a connection to CS1’s receiving port (B1). 3. When B1 is established, DownLink channel will inform UpLink that “We are ready”, after this, CS1 can start to use the service of HSDC. The UpLink Channel Module will handle the data retrieving from Core-Server, and DownLink will response for sending data back to Core-Server. For services like IM text messages, DownLink Module will also monitor the user location and where the text messages should go. It’s a response for exchange data between CS1 and CS2 (or said CSN). PACKAGE STRUCTURES Send Structure typedef struct IM_TextMsg_SEND_PACKET { // packet header im_packet_header header;
  • 4. 4 // packet content uint32_t LEN_MSG_SENDER; char MSG_SENDER_MSISDN[16]; uint32_t LEN_MSG_RECVER; char MSG_RECVER_MSISDN[16]; char MSG_TYPE; // 0x00:1-to-1 private message // 0x01:1-to-1 public message // 0x06:1-to-N private chat room // 0x07:1-to-N public chat room uint32_t LEN_MSG_CONTENT; char *MSG_CONTENT; // Printable Base64 text pointer } im_textmsg_send_packet; Receive Structure typedef struct IM_TextMsg_RECV_PACKET { im_packet_header header; uint32_t LEN_MSG_OWNER; char MSG_OWNER_MSISDN[16]; uint32_t NUMBER_OF_MSGS; // How many messages uint32_t LEN_ALL_MSGS; // The length of ALL_MSGS char *ALL_MSGS[LEN_ALL_MSGS]; // Printable Base64 text string } im_textmsg_recv_packet; THE BENIFITS Since the foresight design of core architecture, Afmobi is able to execute its growth and expansion plans across a range of developing markets, especially in pan- Africa. “The subscribers of Palmchat increased to hundred million in early 2016 and
  • 5. 5 the message amounts are more than several millions per day. It is really real time.”, says Alan. Afmobi has achieved these outcomes while maintaining availability levels at more than 99%, ensuring its services are available when customers needs them and eliminating heterogeneous devices difference. The best cost performance is original the best algorithm and we did it. Afmobi believes deeply if we keep on going, we will offer the best social network services in Africa forever.