2-architectures Flashcards

(33 cards)

1
Q

What is Software Architecture?

A

How the software is logically organised.

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

What is System Architecture?

A

Where the components are placed physically.

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

What is the role of Middleware?

A

Separates applications from the underlying platform.

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

What is an Architectural Style?

A

Defines how components connect and communicate - abstract of physical deployment.

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

Name the 4 architectural styles.

A

Layered, Object-based, Resource-centred (REST), Event-based.

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

What is Layered Architecture?

A

Components organised in layers where each layer uses services from the layer below.

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

What is Pure Layered architecture?

A

Each layer only communicates with layer directly below (e.g. network protocol stack).

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

What is Mixed Layered architecture?

A

Layers can skip levels.

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

What is Layered with Upcalls?

A

Lower layers can call back up (e.g. OS kernel).

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

What does PAD stand for?

A

Presentation, Application, Data - application layering model.

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

What is the Presentation layer in PAD?

A

Everything user facing - UI

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

What is the Application layer in PAD?

A

Core business logic and processing.

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

What is the Data layer in PAD?

A

Persistent storage.

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

What is Object-based Architecture?

A

System is collection of objects that communicate via method calls.

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

What is Encapsulation in Object-based arch?

A

Objects hide internal data and just have methods for interaction.

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

What are Distributed Objects?

A

Objects on different machines where method calls happen over the network.

17
Q

How does RMI (Remote Method Invocation) work?

A

Client has proxy (stub), calls method on proxy, proxy packages and sends over network to remote object, results sent back.

18
Q

What is Resource-based Architecture (REST)?

A

Collection of resources manipulated through a uniform interface.

19
Q

What are the 4 key principles of REST?

A
  1. Resources identified by URIs. 2. Same interface (HTTP methods). 3. Self-described messages. 4. Stateless.
20
Q

What are the benefits of REST?

A

Simple (uniform interface), Scalable (stateless), Web-friendly (HTTP).

21
Q

What is Event-based Architecture?

A

Strong separation between processing and coordination. Autonomous processes coordinating with events.

22
Q

What is an Event Bus?

A

Central mechanism that matches publishers to subscribers.

23
Q

What is a Shared Data Space?

A

Processes put tuples in shared space

24
Q

What is a Thin Client?

A

Client handles only presentation; server handles application + data.

25
What is a Thick Client?
Client handles presentation + some application; server handles data only.
26
What is 2-tier architecture?
Client and server split PAD between them in various ways (thin client, thick client, etc).
27
What are the benefits of 3-tier architecture?
Better separation, each tier scalable independently, better security (client can't access DB), easier to maintain.
28
What are the 3 tiers in 3-tier architecture?
Tier 1: Client (presentation), Tier 2: Application server, Tier 3: Database server.
29
What is P2P (Peer-to-Peer)?
All processes are equal - each is both client and server, functions distributed, no coordinator.
30
What is Structured P2P?
Nodes in deterministic topology using Distributed Hash Table for data lookup.
31
How does Structured P2P work?
Each data item gets a key, each node has identifier, node stores keys close to its identifier.
32
What are the benefits of Structured P2P?
Scalable (no central bottleneck), Fault tolerant (no single point of failure), Efficient lookup (log N hops).
33
What are Edge Server Systems?
Servers at edge of network close to end users. Popular content replicated to edge. Reduced latency and bandwidth to central servers.