FAQ Api Application Flashcards

(7 cards)

1
Q

Difference between forms, mvc, core

A

Cross platforms
Only on windows
Core run on platforms.

Performance no page Lifecycles. Ddl are modular and less size. Memory footprint less

Core simplifies development with centralised configuration, built in Dependency Injection

Core is cloud ready and mvc not that complete
Webbforms not meant for cloud because at the cloud was that dominant

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

Wwwroot folder

A

Static contents js css files

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

Appsettings

A

Json

Name value pair

App configurations. Can be grouped

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

How to read configuration

A

IConfiguration service of app wires us configuration settings from all providers.

We inject that service to controller or services

We either use key or bind to a class

Can use options pattern

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

Dependency Injection

A

Practice of a provider providing a consumer class with its dependent objects

Benefit: centralised dependencies. Decoupled system. Refactor by changing at one place

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

Benefits of dependency Injection

A

Decoupling systems

Centralised

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

What are middlewares

A

Middleware are software components kept as a pipeline in front of endpoint

in a specific order

Which can do pre processing of request before endpoint execution and post processing of response after it.

Each middleware can inspect and modify. Either forward the request or short circuit and send a response

This way we can handle repeated concerns of request handling in a centralised way without repeating code in endpoints

We can also maintain and test better with unit testing. Configurable and refactor also easier in one place

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