Skip to content

Need architecture suggestions

0

Hello! Currently I use an application on Google Cloud which runs Frontend(React) on Cloud Run, Backend on Python which needs GPU machines, uses Firebase for authentication and firestore(GCS) for database. What would be the best corresponding service to use on AWS which I decided to migrate now ? Two potential options are App Runner and Amplify but I am not sure what would be the best in terms of handling GPU machines in the backend and then TLS endpoints managed by AWS just like Cloud Run on GCP.

asked 2 years ago176 views

2 Answers
1

Hi,

I would on my side rather recommend ECS on EC2 (to get the instances supporting GPU). It's the underlying layer of Beanstalk when deploying containers.

You can do very sophisticated things (that's why it is the underlying layer of BeansTalk, AWS Batch, etc. when using containers) in terms of scaling, resilience, etc. but it has a steep learning curve.

To make your opinion, this post will help: https://www.linkedin.com/pulse/aws-elastic-beanstalk-vs-ecs-which-better-krishna-wattamwar/

Best,

Didier

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

0

To migrate your application from Google Cloud to AWS, here's a suggested architecture that corresponds to your current setup:

For the Frontend (React): AWS Amplify Hosting would be an excellent choice for your React frontend. It provides a git-based workflow for continuous deployment, similar to Cloud Run, and handles the hosting of your static web assets. Amplify Hosting also manages SSL/TLS certificates automatically, ensuring secure HTTPS connections.

For the Backend (Python with GPU): For your Python backend that requires GPU machines, you should consider using Amazon EC2 instances with GPU capabilities. Specifically, look into the P3 or P4 series instances, which are optimized for high-performance computing and machine learning workloads. These instances provide access to powerful NVIDIA GPUs.

To manage the deployment and scaling of your backend, you could use AWS Elastic Beanstalk. It's a Platform as a Service (PaaS) offering that can handle the deployment, capacity provisioning, load balancing, and automatic scaling of your application.

For Authentication: Amazon Cognito would be the AWS equivalent of Firebase Authentication. It provides user sign-up, sign-in, and access control features that can be easily integrated into your application.

For Database: As an alternative to Firestore, you could use Amazon DynamoDB, which is a fully managed NoSQL database service. For object storage similar to Google Cloud Storage (GCS), Amazon S3 (Simple Storage Service) would be the appropriate choice.

For API Management: To handle API requests and provide TLS endpoints managed by AWS (similar to Cloud Run), you can use Amazon API Gateway. It allows you to create, publish, and manage APIs at any scale, and it handles tasks like traffic management, authorization, access control, and API version management.

This architecture provides a comparable setup to your current Google Cloud environment while leveraging AWS-specific services. It offers scalability, managed services for various components, and GPU capabilities for your backend processing needs.

Sources
Choosing AWS frontend web and mobile services - Choosing AWS frontend web and mobile services
Server + GPU for algo trader | AWS re:Post

answered 2 years ago

AWS
EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

  • Thank you for the suggestions. That definitely helps.

    What are the best ways to change our code to AWS compatible libraries that one recommends as our code currently is tightly coupled to Google services and moving to Amplify and Cognito does not seem easily w.r.t versions .

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.