Powerful Google developer tools for immediate impact! (2023-24 C)
Infopark AG - AWS Customer Presentation
1. Lessons Learned from
Converting a Web Application
to Multitenancy and Deploying it to
Amazon Web Services
using Scalarium
AWS Tech Summit for Developers and Architects
Berlin, 2011-05-16
18. “
Multitenancy refers to a principle
in software architecture where a
single instance of the software
runs on a server, serving multiple
client organizations (tenants).
http://en.wikipedia.org/wiki/Multitenancy
19. Enabling Multitenancy
Create a "shared nothing"
architecture
Move all configuration into
the database
Extract background tasks
Choose database tenantwise
20. Implementing DB switching is easy
tenant = request.host.split('.').first
begin
@@db ||= CouchRest.database(tenant)
rescue
raise "tenant name '#{tenant}' doesn't exist"
end
21. System Architecture Fiona on SaaS
SaaS Cluster
Scalarium SES:
E-Mail
AZ 1 AZ 2 AZ 3
EC2: EC2: EC2: EC2: EC2: EC2: S3: DB
Fiona, OMC, Fiona, OMC, Fiona, OMC, Fiona, OMC, Fiona, OMC, Fiona, OMC, Assets Backup
DB, Search DB, Search DB, Search DB, Search DB, Search DB, Search (Blobs) Server
Redis/
Elastic Load Balancing: *.saas.infopark.net Resque
Customer
AZ 1 AZ 2
EC2: EC2: GitHub
S3
Rails, Rails,
DB Replica DB Replica +
Hoptoad
Cloud
Front
Elastic Load Balancing: CDN
customer.com New Relic
24. Problems with SQL databases in the cloud
Bottleneck
Doesn‘t scale
Single point of failure
Adding new Replicas
Consistent backups
Recovery times after crashes
32. Automatize using Scalarium
Automated Machine Installs
No hassle with AMI Images
Always install from scratch
Using Chef Recipes
Monitoring and Scaling
Auto Healing
Time Based Scaling
Load Based Scaling
http://www.scalarium.com/
39. Security is important!
Have multiple AWS accounts
Use IAM
• Rotate your keys
• Use an MFA Device
• Lock up your master account
Clear concept how to handle
policies, accounts, groups
Have lots of Account/Key
Pairs with restricted access
Automatize everything
• Security Groups
• Regular Firewall checks
• Account creation / deletion
48. Disadvantages? What‘s missing?
Amazon
Automated creation of
multiple accounts with
separate billing
API for Billing
Scalarium
Access Rights
Security Groups
MFA Support
49. Conclusion
Have a scalable multitenancy architecture
Automatize everything
Don‘t forget The Human Factor
50.
51. That's a wrap!
Twitter: @infopark
facebook.com/infopark
Thank you!
Thomas Witt
Director Product & Business Development
thomas.witt@infopark.de
+49-151-140690-23
Twitter: @thomas_witt
Infopark AG • Kitzingstraße 15 • D-12277 Berlin • www.infopark.de • info@infopark.de