AWS Architecture : Migrate legacy EJB application to AWS, expose EJB methods as secured REST APIs using Amazon managed services

Prince Arora
2 min readFeb 28, 2022

Use Case:

An online food delivery start up “foodEase” is looking to expand its business. Delivery partners are one of the key entities in the business model.

The current offline delivery partner registration process, via the on-premise hosted application, is identified as a bottleneck in the operational expansion.

Business wants the B2B delivery partner integration to be online. High availability, scalability, security and quick migration are key concerns.

The startup wants to leverage the benefits of AWS cloud. Propose a cloud architecture for the same.

Problem Statement:

  • Migrate an existing EJB application to AWS cloud using lift & shift approach.
  • Expose the EJB methods as REST APIs securely using Amazon managed services.
  • Expose public APIs to enable delivery partners register for access tokens required to invoke secured REST APIs.

Managed Services Used For Solution:

  • AWS Lambda
  • Amazon API Gateway
  • Amazon Cognito
  • Amazon EC2
  • Wildfly 21 application server

Solution Overview

High Level Solution

Detailed Solution

*Note : Open image in new tab for better visibility

Detailed Solution Design
Solution Description

--

--

Prince Arora

IT professional | Technology enthusiast | Cloud | AWS | Docker | Machine Learning