amazon web services - Chat App on AWS: EC2 (eJabberd XMPP) vs RDS (Relational Database) vs other options? -


i want create ios app 1:1 , group chats. since dynamodb not ideal solution this, searching better way.

possible solutions:

  1. install xmpp server (ejabbered) on aws ec2
  2. use aws rds (relational database) 1 chat table, each record equals message sent 1 client or group.
  3. use amazon s3 store files each chat?
  4. other options?

which 1 of above elegant / easiest solution this? option 1 not recommended some. option 2 seems easier (auto) scale.

which 1 more cost-efficient? regarding rds amazon writes:

"aws free tier includes 750hrs of micro db instance each month 1 year"

regarding ec2 amazon writes:

"aws free tier includes 750 hours of linux , windows t2.micro instances each month 1 year. stay within free tier, use ec2 micro instances."

i quite new server backend architecture, accounting based on time seems not best solution chat app?

the s3 solution not 1 choose because limit of put authorized on amazon s3 small (2000), if going have millions of chat conversation, cost amazing.

currently i'm using aws rds chat feature on android/ios application.
solution works fine because database , server application scalable, i'm not sure it's better solution use.

conclusion
if have start new chat application today, choose xmpp server low cost , better performance.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -