Module 2: Compute in the Cloud (Part 3) Flashcards
What is a monolithic application?
A monolithic application is an architecture where components are tightly coupled and interconnected. If a single component fails, it can cause other components to fail and potentially lead to the failure of the entire application.
What is the advantage of a microservices approach?
In a microservices approach, application components are loosely coupled. If a single component fails, other components can continue to function independently, preventing the failure of the entire application.
How does a microservices approach help maintain application availability?
The loose coupling of components in a microservices approach ensures that if one component fails, other components can still communicate and work, preventing the failure of the entire application.
What are two AWS services that facilitate application integration in a microservices architecture?
Amazon Simple Notification Service (Amazon SNS) and Amazon Simple Queue Service (Amazon SQS) are two services that facilitate application integration in a microservices architecture.
What is Amazon Simple Notification Service (Amazon SNS)?
Amazon Simple Notification Service (Amazon SNS) is a publish/subscribe service that allows publishers to send messages to subscribers via topics.
What are examples of subscribers in Amazon SNS?
Subscribers in Amazon SNS can be web servers, email addresses, AWS Lambda functions, or other options.
How does Amazon SNS handle publishing updates from a single topic?
Amazon SNS allows publishing updates from a single topic, where a single newsletter includes updates from all areas of a business. Subscribers receive updates about coupons, coffee trivia, and new products within the single newsletter.
How does Amazon SNS handle publishing updates from multiple topics?
Amazon SNS enables publishing updates from multiple topics. The coffee shop, for example, can have separate newsletters for coupons, coffee trivia, and new products. Subscribers can choose to receive updates only for the specific topics they are interested in.
Can subscribers in Amazon SNS subscribe to multiple topics?
Yes, subscribers in Amazon SNS can subscribe to a single topic or multiple topics based on their preferences. They can choose to receive updates for only specific topics or multiple topics they are interested in.
What is Amazon Simple Queue Service (Amazon SQS)?
Amazon Simple Queue Service (Amazon SQS) is a message queuing service that enables sending, storing, and receiving messages between software components without losing messages or relying on the availability of other services.
How does Amazon SQS improve the ordering process in the coffee shop example?
In the coffee shop example, Amazon SQS enables a more efficient ordering process by decoupling the cashier and barista components. Orders are placed into a queue, allowing the cashier to continue taking new orders while the barista retrieves and processes orders from the queue.
What is the role of the queue in Amazon SQS?
The queue in Amazon SQS serves as a buffer between components, such as the cashier and barista in the coffee shop example. It allows messages (orders) to be stored and retrieved, ensuring smooth coordination between components even if they are not immediately available to process the messages.
What is serverless computing?
Serverless computing allows you to run your code without the need to provision or manage servers. It frees you from the responsibilities of server management, allowing you to focus more on innovating new products and features.
What is AWS Lambda?
AWS Lambda is a serverless computing service that allows you to run code without provisioning or managing servers. It charges you only for the compute time consumed by your code, and you can run code for various types of applications or backend services.
How does AWS Lambda work?
With AWS Lambda, you upload your code and set it to trigger from an event source. The code runs only when triggered by the specified event source. You pay for the compute time used during code execution.