Published Date :

About Bro4u

Bro4u.com is an e-commerce platform that provides its clients with personalized home and professional services. Through its platform, Bro4u.com eliminates the difficulties in finding a relevant vendor for a service.

Bro4u.com was launched in 2015, the platform aims to extend its services to other cities across India.

In 2015, the year Bro4u was founded, a report from the Internet and Mobile Association of India (IAMAI) estimated that the number of Internet users was going to reach 402 million by December 2015. In February 2016 IAMAI likewise reported that the number of mobile Internet users in the country would increase by 55 percent to 371 million by June that year.

Bro4u is an online marketplace, founded in 2015. Based in the city of Bangalore, the capital of the Indian state Karnataka (frequently nicknamed the “Silicon Valley of India”), the startup company – which describes itself as a “ecommerce marketplace for services”  – has plans to expand onwards to amongst additional places Hyderabad (capital city of Telangana) and Pune (second largest city in Maharashtra), according to The New Indian Express. The core idea of the company consists of providing for the exchange of both household and professional services, for example from tradespersons like plumbers, electricians and cleaners, amongst others.

THE CHALLENGE: 

Bro4u Online Service Pvt Ltd was running its infrastructure on traditional way. But with thousands of sudden traffic of users per second and unpredictable spikes in traffic, it became difficult to run the infrastructure efficiently. It was basic need to move the current set up to AWS. So, AWS SMS comes to rescue.

And the database service used on AWS is Amazon Aurora RDS, which is highly available, fully managed RDS service offered by AWS.

Also, as RDS Aurora is MySQL & PostgreSQL compatible it was decided to shift to amazon aurora.

WHY AMAZON WEB SERVICES: 

Bro4u chose Amazon Web Services due several services offered by AWS which are mentioned below. Also, reliability, availability, latency, security etc. were the factors included with these services.

  • Networking – VPC, Security groups, NACL, Subnets etc.
  • Databases such as DynamoDB managed service by aws
  • Compute services – Amazon ec2
  • For high availability – Autoscaling, latency, read-write node for RDS.
  • DR – Multi AZ etc.

Aws turned to be a perfect solution to host the app & minimize the infrastructure cost. The support offered by AWS is admirable. The quick resolution helps to reach commitment easily and business grows.

AWS provide documents to help maintain the security at best level.

The Benefits:

Amazon RDS is managed database services that provides six different DB engines. These are including Amazon Aurora, MySQL, MariaDB, Oracle, Microsoft SQL Server, and PostgreSQL. Current requirement was MySQL compatible DB so RDS Aurora is selected.

Amazon RDS performs the routine task such as patching, backup, failure detection, etc.

With RDS it easy to use replication to enhance availability and reliability for production workloads.

Some key features offered by Aurora MySQL are the following:

  • High throughput with low latency
  • Push-button compute scaling
  • Storage autoscaling
  • Custom database endpoints
  • Parallel queries for faster analytics

 

What is AWS Database Migration Service?

 AWS Database Migration Service (AWS DMS) is a service that makes it easy to migrate RDS, NoSQL or other types of databases to AWS with minimum downtime.

With AWS DMS you can migrate DBs to AWS one time & keep it is sync until replication is stopped.

Also, if you want to change database engines, you can use the AWS Schema Conversion Tool (AWS SCT) to translate your database schema to the new platform

Basically, migration of database is replication process where we specify the source and target and the data is moved between those.

So above diagram gives us the brief idea about howe the migration set up can be done.

The migration process:

The Migration process helps customer migrate tens thousands of applications on cloud. Here we need the migration process for Databases. If you want to Migrate your databases to AWS with minimal downtime DMS is the option.

More than 350,000 databases migrated using AWS Database Migration Service.

If we discuss the High-level view of AWS DMS following things

As shown in the diagram below the process of Migration is consist of following things.

  • Replication process which is carried out by Replication instance.
  • Needs the endpoints for source & destination Databases.
  • And then we can create migration task to get the data moved from source to destination.

The migration task includes:

  • Loading the existing Data
  • Replicating the cache changes
  • Ongoing replication

AWS DMS first create the schema to replicate the given data on to it. Also, there are two types in migration process i.e. Homogeneous or Heterogeneous migration.

In homogeneous migration the process above is done whereas in heterogeneous migration the SCT tool used to convert the complex schema on target DB.

The SCT (Schema Conversion Tool) is used the generate the schema on target Databases before the actual migration is processed.

Components of AWS DMS:

The basic components involved in DMS are as discussed below.

  1. Replication Instance:

At high level the replication instance is nothing but the Ec2 instance which carries responsibility of replication on cloud Target Database. Which is launched at time of deploying DMS.

The following diagram shows the overview of process.

This one instance can handle multiple replication tasks as such, you get to select the type of instance.

  1. Source & Destination endpoints:

Endpoints are used by DMS to connect the source and destination DBs. These endpoints can be source or target. While giving the endpoints information we specify the following details.

  • Types of engine i.e. MySQL, PostgreSQL etc.
  • Types of endpoints
  • Server name
  • Ports
  • Credentials etc.
  • Replication Task:

Replication task basically moves the datasets from source endpoints to the target endpoints.

While initiating the task we do following things .

  • Specify the instance on which this task will run .
  • Source endpoint
  • Target endpoint
  • & Migration type. Etc.

The full process is easier to understand, the data is collected from sources database & stored on to the target database.

Here the process of migration used is Homogeneous. Bro4 had the privet server hosting the database compatible with MySQL. Hence on AWS the obvious choice was to get the MySQL compatible Database i.e . Amazon Aurora.

Current database hosted for the Bro4u is RDS aurora which runs website & is highly available.

Share Blog :