Host a web application online - web-services

I have created a web service with a NoSQL database, I wish to host this using some sort of cloud storage so I can access the web service and database anywhere. I have never done this before so I'm not sure where to start. Any suggestions of where I could host the service and database would be hugely helpful.

I use AWS, a lot of people like Rackspace. However any hosting company can store your DB for you.
Heres what I use, Check out AWS Free Tier with Amazon RDS, Its free under the teir limit
https://aws.amazon.com/rds/free/
750 hours of Amazon RDS Single-AZ db.t2.micro Instance usage running MySQL, MariaDB, PostgreSQL, Oracle BYOL or SQL Server (running SQL Server Express Edition) – enough hours to run a DB Instance continuously each month
20 GB of DB Storage: any combination of General Purpose (SSD) or Magnetic storage
10 million I/Os
20 GB of backup storage for your automated database backups and any user-initiated DB Snapshots
In addition to these services, the AWS Management Console is available at no additional charge to help you build and manage your DB Instances on Amazon RDS.

Related

Distributed Database Access in aws cloud front

I have MYSQL Database in AWS RDS and Web Application in Mumbai Region. I want to access the web application from the USA with good latency/speed. I have used AWS CloudFront still the application is very slow.
Any Suggestions.
Best,
Syed
AWS CloudFront
How about a cross-region read replica of your MySQL database in the USA? If the majority of your database operations are read rather than write, this will give you a significant improvement in response time.
In standard, it is recommended to keep databases and apps should be in the same regions(eventually can try to keep in the same zone) from the majority of end-user belongs to
As of now, you can create a cross-region replica but you need to be ready for replica lag and data transfer charges. In the long term, plan to move your setup to N.Virgania or any other USA region.

AWS Lightsail MySql Database

I have taken a AWS Lightsail Unix Instance for one of my pilot project, I wanted to explore AWS ecosystem and thought this would be a easy playground to start with. The plan I opted was a USD 5 per month, which gives 1 GB Memory, 1 Core Processor, 40 GB SSD Disk and 2 TB Transfer.
After subscribing I created a LAMP instance and a Plesk Instance, assigned static IPs to both instances and setup connections from my PC to transfer files using PuTTY; also setup access to Plesk and phpMyAdmin to start work.
In the first month itself, I am seeing a huge bill of USD 985 for using AWS RDS, details in bill are as below:
Amazon Relational Database Service for MySQL Community Edition
$1.080 per RDS db.r4.xlarge Multi-AZ instance hour (or partial hour) running MySQL
My question is - When I created LAMP, does it create a AWS RDB service automatically, I have hardly used MySql for anything. It seems AWS Lightsail is throwing hidden charges without notifying customers about actuals.
No, creating a LAMP stack on Lightsail does not create an RDS instance on your behalf. With the LAMP stack on Lightsail, the MySQL database is installed on that instance alongside PHP and Apache - there is no charge beyond the $5.00 / month (in your case) as long as you don't go over the data transfer limit.
I can't say why you're getting charged for RDS, but it's not because you fired up Lightsail instances.
Thank you folks!
I tried to go through several docs AWS provides on pricing. There is no indication that AWS RDB services automatically starts on LAMP installation. I wanted to take second opinion before raising a complaint with them. I have opened a case, and they have confirmed to revert the charges, however there is no clarity how AWS RDS service has started. At present I have removed all DB snapshots and backups.

AWS free tier EC2 EBS snapshot billing?

I'm working on a small personal project with a free-tier account.
I have one linux instance which I have my nodejs app running. The app basically listens for any incoming websocket data and uses AWS SNS to send the data to my iPhone. App needs to access RDS DB that I set up every time this happens.
Today I got an email saying that I used 85% of the usage limit for AWS EBS snapshot storage. I left it for few hours and now it used 100% and it says the Month-end forecasted usage is 3 GB-mo 310.00%.
It seems like this EBS snapshot is just a backup so is there a way to disable this to keep my cost $0? If not, how much will it cost me to run this app? Would moving the RDS DB to ec2 help reduce some cost?

AWS database operations and hour price

I need to host Accounting desktop application on Windows server. SQL database of this application will be used as a source for ecommerce website, so there will be quite often read/write operations to this database (from different linux server). Is using AWS a good idea here? Does the read/write database operations count for usage? Meaning, if I have a cron that reads DB every 5 minutes, does it mean I will be billed for 24/7 usage?
Thanks.
In databases PaaS = RDS (like in EC2, so with VMs) you're paying per hour of instance that you have available, it doesn't matter if you use it or not.
Answering your question - it doesn't matter if you will be querying the DB every 5 minutes, 1 second or 1 hour. You will pay for the database the same amount (transfer costs are in most cases negligible when compared to EC2/RDS costs) = for the availability you need. If you need it to be available 24x7, you will pay for 24x7. If you need your database to run only during specific hours during the day (or only Mon-Fri) you can automate starting/stopping it (e.g. with CloudWatch Events + AWS Lambda) to lower your cost.
But then I guess if it's ecommerce, you anyway need the database to be available 24x7 :)
Depends. If you want to setup your own SQL server on an EC2 instance or use AWS RDS.
In case of former you SQL server is like any other application running on an EC2 instance and the costs are simply a factor of EC2 pricing
In case of latter refer AWS RDS pricing for SQL Server

Free Amazon AWS/RDS Instance

I have hosted a server app on AWS and RDS for relational DB. Though I opted for free account, RDS is being charged at $0.0025 per hour amounting to $18 a month.
I read some documentation but still not able to figure this out. Is this the way it is or is there a way to get free RDS account for testing purpose?
Thanks
OpenTube
I've just started setting this up and I realized quickly that it was allowing me to make selections that couldn't possibly be free. When setting up your free teir instance, look on the left hand side of the screen for
Your current selection is eligible for the free tier.
Once you select something like "Multi-AZ Deployment" or use any DB Instance Class other than "db.t2.micro" it will slyly change the left column display:
The following selections disqualify the instance from being eligible for the free tier:
Multi-AZ Deployment
Just be careful in your selections and usage to maintain the free teir.
What type of database are you running ? The free tier only applies to SQL Server Micro DB Instance:
750 hours of Amazon RDS for SQL Server Micro DB Instance usage
(running SQL Server Express Edition in a single Availability Zone)
See http://aws.amazon.com/free/
There is also a 60 day free trial for MySQL and Oracle:
See http://aws.amazon.com/rds/free-trial/
Your simplest option is to install the database on your instance.
Alternatively you could look at using a hosted MySQL service provided like http://xeround.com/, or http://www.cleardb.com/, both have limited but free options.
As of October 1st 2012, AWS free usage tier now includes Amazon RDS.
The free tier applies to Single-AZ deployments of MySQL, Oracle “Bring-Your-Own-License (BYOL)” licensing model and SQL Server Express Edition.
See this link from Amazon for more details:
https://aws.amazon.com/about-aws/whats-new/2012/10/01/amazon-rds-aws-free-tier/
you should use t1.micro. It is at the bottom of the options.
The important thing is not to choose RDS Aurora.
If you choose MySql or Postgres, the webpage will show template Free Tier.
When select it, all default configs will be good for free tier.
Some screenshots:
https://www.golery.com/pencil/zr
I recently provisioned an AWS RDS instance. I thought I was within my free tier limit and I kept being charged for "Amazon Relational Database Service Provisioned Storage". It was always a few cents.
I had taken between 15 and 20 GB of storage when I set it up.
I contacted support and they told me that, in order to be within the RDS free tier, I have to take no more than 9Gb storage when provisioning the instance. But after the backup is made, it will use up an additional 9Gb, so the total storage should be no more than 20Gb.
So now, when I provisioned a new instance of 9 GB, I am within the limits of the free tier.
Also always check if in the region of choice they have free tier resources.