Application Design Patterns Flashcards

(43 cards)

1
Q

In application design, what is the ambassador pattern?

A

Ambassador Pattern (App Design):

Used to offload everyday tasks (e.g., logging, security, retries) from a client to a helper service (the ambassador) that sits beside the client. This is useful when interacting with external or legacy services.

Example:
A microservice uses an ambassador to add retry logic before calling an external payment API.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In application design, what is the anti-corruption layer

A

Anti-Corruption Layer (ACL)

in application design is a protective layer that isolates your system from external or legacy systems to avoid unwanted dependencies or “corruption” from their models. It translates data and behavior between systems, preserving your domain integrity.

Example:
A modern e-commerce app uses an ACL to interact with a legacy ERP system, translating its outdated product data model into the app’s clean, consistent format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

in application design, what is an asynchronous request-reply

A

An asynchronous request-reply is a communication pattern where the sender sends a request and continues without waiting for an immediate response. The reply comes later, often via a callback, message queue, or polling. This improves scalability and responsiveness.

Example: A web app sends an image to an API for processing. It immediately returns control to the user, and the result is delivered later via email or a status endpoint.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In the application design, what are the backends for the frontend pattern?

A

Backends for Frontend (BFF)** is a design pattern where each frontend (e.g., web, mobile) has a dedicated backend tailored to its needs. It helps simplify frontend development by aggregating and shaping data from multiple services.

Example:
A mobile app BFF fetches user data and images from different microservices, formats them efficiently for mobile display, and returns a compact response.

Key Benefit:
Decouples frontend from complex backend logic, improving performance and maintainability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In application design, what is the Bulkhead Pattern?

A

Backends for Frontend (BFF)** is a design pattern where each frontend (e.g., web, mobile) has a dedicated backend tailored to its needs. It helps simplify frontend development by aggregating and shaping data from multiple services.

Example:
A mobile app BFF fetches user data and images from different microservices, formats them efficiently for mobile display, and returns a compact response.

Key Benefit:
Decouples frontend from complex backend logic, improving performance and maintainability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Ai application design: what’s caching aside?

A

Caching** in AI application design means storing frequently used data in a temporary storage (cache) to reduce repeated computation or slow database access, improving performance and response times.

Example:
An AI chatbot caches user profile data after the first lookup to avoid hitting the database on every message.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Ai application design what’s Choreography?

A

Choreography in AI application design refers to a decentralized coordination pattern where each service or component reacts to events independently without a central controller.

🔹 Key idea: Services listen for and emit events, enabling flexible, loosely coupled interactions.

📘 Example: In an AI workflow, the “Image Uploaded” event triggers an “Image Classifier” service, which emits a “Classification Done” event that a “Report Generator” listens to — no central orchestrator required.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In application design was a circuit breaker?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

an application design what’s the calm check

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

can I please design what’s the compensating transaction

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

in application design was completing consumers

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

an application designed with compute resource consolidation

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

an application design what cors

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

an application is designed what’s deployment stamps

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

in application design what’s it work looked configuration

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

the application design was event sourcing

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

an application design what’s external configuration store

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

in application design what’s the GateKeeper

19
Q

in the application design what’s the Gateway aggregation

20
Q

an application design was to Gateway offloading

21
Q

in application design once Gateway routing

22
Q

an application designed was geode

23
Q

an application design was held to endpoint monitoring

24
Q

an application design what’s an index table

25
in application design What leader election
26
an application design what's materialized view
27
application design what message Bridge
28
an application designed with pipes and filters
29
in applications designed what's a priority queue
30
In application design, what's publish-subscribe
31
In application design, what's quarantine
32
an application design once query-based load leveling
33
Application design was rate-limiting
34
In application design was Retry
35
In application design was The Saga pattern
36
In the application designed with a scheduler agent supervisor
37
In application design was the sequential Convoy
38
An application designed with sharding
39
In application designed with Sidecar
40
In application design, what static content hosting
41
In application design was Strangler fig
42
In application, the design was throttling
43
in application design, what's a valid key