狠狠撸

狠狠撸Share a Scribd company logo
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 (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
willcoxjanay
?
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...
Alan Quayle
?
Building Construction Project Summary
Building Construction Project SummaryBuilding Construction Project Summary
Building Construction Project Summary
Michelle Madero
?
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
Suzanne Simmons
?
PPT on MS-CIT Unit-2
PPT on MS-CIT Unit-2PPT on MS-CIT Unit-2
PPT on MS-CIT Unit-2
SHRIBALAJIINFOTECH
?
Tcs Cloud Messaging Center
Tcs Cloud Messaging CenterTcs Cloud Messaging Center
Tcs Cloud Messaging Center
Comtech TCS
?
Cloud Messaging for Carriers and Enterprise
Cloud Messaging for Carriers and EnterpriseCloud Messaging for Carriers and Enterprise
Cloud Messaging for Carriers and Enterprise
Comtech TCS
?
Building a WhatsApp Clone Understanding the Source Code.pdf
Building a WhatsApp Clone Understanding the Source Code.pdfBuilding a WhatsApp Clone Understanding the Source Code.pdf
Building a WhatsApp Clone Understanding the Source Code.pdf
221122anmol
?
Internet on Mobile
Internet on MobileInternet on Mobile
Internet on Mobile
cassyp
?
WMB_DP_resume
WMB_DP_resumeWMB_DP_resume
WMB_DP_resume
Vinod Reddy
?
It practical file
It practical fileIt practical file
It practical file
Anirudh Tyagi
?
Wap
Wap Wap
Wap
Somesh Pursnani
?
Key management in information centric networking
Key management in information centric networkingKey management in information centric networking
Key management in information centric networking
IJCNCJournal
?
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
?
Internet
InternetInternet
Internet
Suneel Dogra
?
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
IOSR Journals
?
Cloud final with_lab
Cloud final with_labCloud final with_lab
Cloud final with_lab
SaradaLakshmi2
?
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
ijistjournal
?
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
?
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
?
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...
Alan Quayle
?
Building Construction Project Summary
Building Construction Project SummaryBuilding Construction Project Summary
Building Construction Project Summary
Michelle Madero
?
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
Suzanne Simmons
?
Tcs Cloud Messaging Center
Tcs Cloud Messaging CenterTcs Cloud Messaging Center
Tcs Cloud Messaging Center
Comtech TCS
?
Cloud Messaging for Carriers and Enterprise
Cloud Messaging for Carriers and EnterpriseCloud Messaging for Carriers and Enterprise
Cloud Messaging for Carriers and Enterprise
Comtech TCS
?
Building a WhatsApp Clone Understanding the Source Code.pdf
Building a WhatsApp Clone Understanding the Source Code.pdfBuilding a WhatsApp Clone Understanding the Source Code.pdf
Building a WhatsApp Clone Understanding the Source Code.pdf
221122anmol
?
Internet on Mobile
Internet on MobileInternet on Mobile
Internet on Mobile
cassyp
?
Key management in information centric networking
Key management in information centric networkingKey management in information centric networking
Key management in information centric networking
IJCNCJournal
?
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
?
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
IOSR Journals
?
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
ijistjournal
?
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
?

More from Alan Kao (13)

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

Recently uploaded (20)

The Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nesThe Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nes
ScyllaDB
?
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (平山毅)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (平山毅)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (平山毅)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (平山毅)
Tsuyoshi Hirayama
?
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & TipsTrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc
?
World Information Architecture Day 2025 - UX at a Crossroads
World Information Architecture Day 2025 - UX at a CrossroadsWorld Information Architecture Day 2025 - UX at a Crossroads
World Information Architecture Day 2025 - UX at a Crossroads
Joshua Randall
?
What Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI AgentsWhat Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI Agents
Zilliz
?
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-StoryRevolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
ssuser52ad5e
?
Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)
nick896721
?
BoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is DynamicBoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is Dynamic
Ortus Solutions, Corp
?
Q4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor PresentationQ4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor Presentation
Dropbox
?
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOTSMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
TanmaiArni
?
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIATHE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
Srivaanchi Nathan
?
Future-Proof Your Career with AI Options
Future-Proof Your  Career with AI OptionsFuture-Proof Your  Career with AI Options
Future-Proof Your Career with AI Options
DianaGray10
?
A Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin EngineeringA Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin Engineering
Daniel Lehner
?
Computational Photography: How Technology is Changing Way We Capture the World
Computational Photography: How Technology is Changing Way We Capture the WorldComputational Photography: How Technology is Changing Way We Capture the World
Computational Photography: How Technology is Changing Way We Capture the World
HusseinMalikMammadli
?
Wondershare Filmora Crack 14.3.2.11147 Latest
Wondershare Filmora Crack 14.3.2.11147 LatestWondershare Filmora Crack 14.3.2.11147 Latest
Wondershare Filmora Crack 14.3.2.11147 Latest
udkg888
?
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
ScyllaDB
?
Field Device Management Market Report 2030 - TechSci Research
Field Device Management Market Report 2030 - TechSci ResearchField Device Management Market Report 2030 - TechSci Research
Field Device Management Market Report 2030 - TechSci Research
Vipin Mishra
?
Cloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in AviationCloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in Aviation
Assem mousa
?
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog GavraReplacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
ScyllaDB
?
The Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nesThe Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nes
ScyllaDB
?
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (平山毅)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (平山毅)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (平山毅)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (平山毅)
Tsuyoshi Hirayama
?
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & TipsTrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc
?
World Information Architecture Day 2025 - UX at a Crossroads
World Information Architecture Day 2025 - UX at a CrossroadsWorld Information Architecture Day 2025 - UX at a Crossroads
World Information Architecture Day 2025 - UX at a Crossroads
Joshua Randall
?
What Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI AgentsWhat Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI Agents
Zilliz
?
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-StoryRevolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
ssuser52ad5e
?
Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)
nick896721
?
BoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is DynamicBoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is Dynamic
Ortus Solutions, Corp
?
Q4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor PresentationQ4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor Presentation
Dropbox
?
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOTSMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
TanmaiArni
?
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIATHE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
Srivaanchi Nathan
?
Future-Proof Your Career with AI Options
Future-Proof Your  Career with AI OptionsFuture-Proof Your  Career with AI Options
Future-Proof Your Career with AI Options
DianaGray10
?
A Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin EngineeringA Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin Engineering
Daniel Lehner
?
Computational Photography: How Technology is Changing Way We Capture the World
Computational Photography: How Technology is Changing Way We Capture the WorldComputational Photography: How Technology is Changing Way We Capture the World
Computational Photography: How Technology is Changing Way We Capture the World
HusseinMalikMammadli
?
Wondershare Filmora Crack 14.3.2.11147 Latest
Wondershare Filmora Crack 14.3.2.11147 LatestWondershare Filmora Crack 14.3.2.11147 Latest
Wondershare Filmora Crack 14.3.2.11147 Latest
udkg888
?
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
ScyllaDB
?
Field Device Management Market Report 2030 - TechSci Research
Field Device Management Market Report 2030 - TechSci ResearchField Device Management Market Report 2030 - TechSci Research
Field Device Management Market Report 2030 - TechSci Research
Vipin Mishra
?
Cloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in AviationCloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in Aviation
Assem mousa
?
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog GavraReplacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
ScyllaDB
?

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.