Reactive Microservices Architecture on AWS

Similar documents
Serverless Architecture Hochskalierbare Anwendungen ohne Server. Sascha Möllering, Solutions Architect

ARCHITECTING WEB APPLICATIONS FOR THE CLOUD: DESIGN PRINCIPLES AND PRACTICAL GUIDANCE FOR AWS

How can you implement this through a script that a scheduling daemon runs daily on the application servers?

Amazon Web Services. Block 402, 4 th Floor, Saptagiri Towers, Above Pantaloons, Begumpet Main Road, Hyderabad Telangana India

Microservices on AWS. Matthias Jung, Solutions Architect AWS

Store, Protect, Optimize Your Healthcare Data in AWS

Deep Dive Amazon Kinesis. Ian Meyers, Principal Solution Architect - Amazon Web Services

How to go serverless with AWS Lambda

SAA-C01. AWS Solutions Architect Associate. Exam Summary Syllabus Questions

Security Aspekts on Services for Serverless Architectures. Bertram Dorn EMEA Specialized Solutions Architect Security and Compliance

About Intellipaat. About the Course. Why Take This Course?

AWS IoT Overview. July 2016 Thomas Jones, Partner Solutions Architect

BERLIN. 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved

AWS Lambda + nodejs Hands-On Training

Microservices Architekturen aufbauen, aber wie?

Splunk & AWS. Gain real-time insights from your data at scale. Ray Zhu Product Manager, AWS Elias Haddad Product Manager, Splunk

Managing IoT and Time Series Data with Amazon ElastiCache for Redis

Amazon Linux: Operating System of the Cloud

Building a Microservices Platform, Patterns and Best Practices

AWS Lambda: Event-driven Code in the Cloud

Serverless Computing. Redefining the Cloud. Roger S. Barga, Ph.D. General Manager Amazon Web Services

Microservices without the Servers: AWS Lambda in Action

Amazon Web Services (AWS) Solutions Architect Intermediate Level Course Content

Scaling on AWS. From 1 to 10 Million Users. Matthias Jung, Solutions Architect

The Orion Papers. AWS Solutions Architect (Associate) Exam Course Manual. Enter

AWS Solutions Architect Associate (SAA-C01) Sample Exam Questions

Accenture Cloud Platform Serverless Journey

Using AWS to Build a Large Scale Dockerized Microservices Architecture. Dr. Oliver Wahlen moovel Group GmbH Frankfurt, 30.

Cloud Computing. Amazon Web Services (AWS)

Energy Management with AWS

Going Serverless. Building Production Applications Without Managing Infrastructure

Beating the Final Boss: Launch your game!

Getting Started with AWS IoT

Design Patterns for the Cloud. MCSN - N. Tonellotto - Distributed Enabling Platforms 68

DevOps on AWS Deep Dive on Continuous Delivery and the AWS Developer Tools

Containers, Serverless and Functions in a nutshell. Eugene Fedorenko

Amazon Web Services Training. Training Topics:

Zombie Apocalypse Workshop

Cloud Analytics and Business Intelligence on AWS

Architecting Microsoft Azure Solutions (proposed exam 535)

AWS Lambda. 1.1 What is AWS Lambda?

Experiences with Serverless Big Data

Amazon. Exam Questions AWS-Certified-Solutions-Architect- Professional. AWS-Certified-Solutions-Architect-Professional.

Amazon Web Services (AWS) Training Course Content

Building Games with AWS Mobile Services

Crypto-Options on AWS. Bertram Dorn Specialized Solutions Architect Security/Compliance Network/Databases Amazon Web Services Germany GmbH

Agenda. AWS Database Services Traditional vs AWS Data services model Amazon RDS Redshift DynamoDB ElastiCache

AWS Solutions Architect Exam Tips

Vernetzte Fahrerassistenzsysteme (BMW + AWS ) Hazard Preview

MONITORING SERVERLESS ARCHITECTURES

Extend NonStop Applications with Cloud-based Services. Phil Ly, TIC Software John Russell, Canam Software

PrepAwayExam. High-efficient Exam Materials are the best high pass-rate Exam Dumps

Level Up Your CF Apps with Amazon Web Services

Designing MQ deployments for the cloud generation

Developing Microsoft Azure Solutions (70-532) Syllabus

Securing Serverless Architectures

AWS Solution Architect Associate

Develop and test your Mobile App faster on AWS

At Course Completion Prepares you as per certification requirements for AWS Developer Associate.

AWS 101. Patrick Pierson, IonChannel

TestkingPass. Reliable test dumps & stable pass king & valid test questions

Containers or Serverless? Mike Gillespie Solutions Architect, AWS Solutions Architecture

Intro to Big Data on AWS Igor Roiter Big Data Cloud Solution Architect

Cloud-Native Applications. Copyright 2017 Pivotal Software, Inc. All rights Reserved. Version 1.0

High School Technology Services myhsts.org Certification Courses

Introduction to Cloud Computing

Amazon AWS-Solution-Architect-Associate Exam

AWS Administration. Suggested Pre-requisites Basic IT Knowledge

AWS Lambda in (a bit of) theory and in action. Adam Smolnik

AWS Certified Solutions Architect - Associate 2018 (SAA-001)

Nevin Dong 董乃文 Principle Technical Evangelist Microsoft Cooperation

How to host and manage enterprise customers on AWS: TOYOTA, Nippon Television, UNIQLO use cases

Serverless Architectures with AWS Lambda. David Brais & Udayan Das

MongoDB in AWS (MongoDB as a DBaaS)

Containers and the Evolution of Computing

AWS Storage Gateway. Not your father s hybrid storage. University of Arizona IT Summit October 23, Jay Vagalatos, AWS Solutions Architect

IoT Device Simulator

We are ready to serve Latest IT Trends, Are you ready to learn? New Batches Info

Serverless Predictions at Scale

How to Route Internet Traffic between A Mobile Application and IoT Device?

Introduction to Database Services

Developing Enterprise Cloud Solutions with Azure

Lean & Mean on AWS: Cost-Effective Architectures. Constantin Gonzalez, Solutions Architect, AWS

S U M M I T B e r l i n

AWS Well Architected Framework

Wrapp. Powered by AWS EC2 Container Service. Jude D Souza Solutions Wrapp Phone:

Building Microservices with the 12 Factor App Pattern

Overview of AWS Security - Database Services

Data Acquisition. The reference Big Data stack

What s New at AWS? A selection of some new stuff. Constantin Gonzalez, Principal Solutions Architect, Amazon Web Services

Frankfurt 26 & 27 September 2018

Transformation-free Data Pipelines by combining the Power of Apache Kafka and the Flexibility of the ESB's

Principal Solutions Architect. Architecting in the Cloud

Towards a Real- time Processing Pipeline: Running Apache Flink on AWS

Beyond 1001 Dedicated Data Service Instances

AN EVENTFUL TOUR FROM ENTERPRISE INTEGRATION TO SERVERLESS. Marius Bogoevici Christian Posta 9 May, 2018

Industry-leading Application PaaS Platform

SAMPLE CHAPTER. Event-driven serverless applications. Danilo Poccia. FOREWORD BY James Governor MANNING

Emulating Lambda to speed up development. Kevin Epstein CTO CorpInfo AWS Premier Partner

AWS Solution Architecture Patterns

Transcription:

Reactive Microservices Architecture on AWS Sascha Möllering Solutions Architect, @sascha242, Amazon Web Services Germany GmbH

Why are we here today? https://secure.flickr.com/photos/mgifford/4525333972

Agenda What is Reactive Architecture? How to build Reactive Architectures on AWS? Application Architecture Deployment

What is Reactive Architecture? What is Reactive Architecture?

N-Tier architecture Frontend Servers API Storage User waits for update Poll Poll Queries Database Synchronous

Software moves faster today

Traditional style of applications cannot deliver on these requirements any longer

Reactive Applications Responsive Elastic Resilient Message-driven

Reactive Architecture Reactive programming A development model focusing on the observation of data streams, reacting on changes, and propagating them. Reactive system An architecture style used to build responsive and robust distributed systems based on asynchronous messagepassing.

Reactive Architecture Asynchronous message passing Non-blocking Higher throughput Efficient compute utilization and lower costs

Reactive Architecture Loosely coupled Location independent Easy to extend and maintain Push-based

Microservices

Microservices should be stateless. Keep state in managed services.

No shared libraries or shared SDKs.

Avoid Host-Affinity.

Use lightweight protocols for communication.

Use mechanisms for registration.

How to build Reactive Architectures on AWS?

Example use case Banner Customer visits website Customer clicks on a banner Customer buys from online-shop

High Level Architecture

Data Collection Amazon Elastic Container Registry Data ingestion Application Load Balancer Amazon Elastic Container Service Amazon Kinesis Data Streams AWS Lambda Amazon DynamoDB Core data updates Amazon ElastiCache AWS Lambda Amazon Kinesis Data Streams Core data update

High Level Architecture Amazon ECS and Docker used for the main application Fargate launch type Resiliency and elasticity implemented by using auto scaling Amazon Elastic Container Service

High Level Architecture AWS Lambda functions consume messages Persist data in NoSQL-store Update core-data in Redis Send notifications to main application Resiliency and scalability part of the service AWS Lambda

High Level Architecture Amazon Kinesis Data Streams used to decouple components Asynchronously push event data to NoSQLstore Update core-data in Redis Amazon Kinesis Data Streams

High Level Architecture Amazon ElastiCache with Redis 3 engine Multi-AZ setup with failover and one shard Used to store core-data Notification channel Redis supports pub/sub Amazon ElastiCache

High Level Architecture Amazon DynamoDB NoSQL-store used to persist event-data Backup and restore Encryption at rest Amazon DynamoDB

Application Architecture

Data Collection Amazon Elastic Container Registry You are here now! Data ingestion Application Load Balancer Amazon Elastic Container Service Amazon Kinesis Data Streams AWS Lambda Amazon DynamoDB Core data updates Amazon ElastiCache AWS Lambda Amazon Kinesis Data Streams Core data update

Application Architecture

Application Architecture Source: http://vertx.io/docs/guide-for-java-devs/

Application Architecture Source: http://vertx.io/docs/guide-for-java-devs/

Application Architecture Source: http://vertx.io/docs/guide-for-java-devs/

Application Architecture HttpVerticle: exposes HTTP endpoint CacheVerticle: implements L1 cache RedisVerticle: implements Redis access KinesisVerticle: messages to Amazon Kinesis Data Stream

Subscribe to event bus Convert data Send data to Kinesis stream

Application Architecture

Subscribe to EB Consume data from event bus Send data to cache verticle Subscribe to Redis channel

Data Collection You are here now! Amazon Elastic Container Registry Data ingestion Application Load Balancer Amazon Elastic Container Service Amazon Kinesis Data Streams AWS Lambda Amazon DynamoDB Core data updates Amazon ElastiCache AWS Lambda Amazon Kinesis Data Streams Core data update

Application Architecture AWS Lambda

Lambda considerations and best practices AWS Lambda is stateless architect accordingly Assume no affinity with underlying compute infrastructure Local filesystem access and child process may not extend beyond the lifetime of the Lambda request

Iterate over batch of events Unmarshal protobuf messages Map to struct

Design principles Use push instead of pull Avoid blocking calls Decouple your services using async message passing Keep state in managed services Use caching

Deployment

Deployment AWS CloudFormation

Lambda function configuration S3 Bucket and filename

Network mode ECS Launch Type CPU and RAM

Go build something! Amazon API Gateway AWS Lambda Amazon DynamoDB

Related Sessions Container-based Architectures on AWS (Blackfoot) Kubernetes Running on AWS (Blackfoot) Serverless Architectural Patterns (Amelia) Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS (Coral)

Question? Ask this guy at the Ask an Architect booth:

Please complete the session survey in the summit mobile app.

Thank you!