Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad24155

Browse files
architecture question
1 parent 0389fd4 commit ad24155

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ At the beginning, it was the repository with questions from Java interviews. Cur
235235

236236
## Architecture
237237
- [What are the differences between monolith and microservices? (Performance/Deployability/Failure impact and etc)](architecture.md#what-are-the-differences-between-monolith-and-microservices-performancedeployabilityfailure-impact-and-etc)
238+
- [Imperative vs functional vs reactive programming?](architecture.md#imperative-vs-functional-vs-reactive-programming)
238239

239240
## REST
240241
- [What is rest architecture? What are the requirements?](rest.md#what-is-rest-architecture-what-are-the-requirements)

architecture.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Architecture
22
- [What are the differences between monolith and microservices? (Performance/Deployability/Failure impact and etc)](#what-are-the-differences-between-monolith-and-microservices-performancedeployabilityfailure-impact-and-etc)
3+
- [Imperative vs functional vs reactive programming?](#imperative-vs-functional-vs-reactive-programming)
34

45
## What are the differences between monolith and microservices? (Performance/Deployability/Failure impact and etc)
56
###### Relative links:
6-
- http://www.kamilgrzybek.com/design/modular-monolith-architectural-drivers/
7+
- http://www.kamilgrzybek.com/design/modular-monolith-architectural-drivers/
8+
9+
## Imperative vs functional vs reactive programming?
10+
**Imperative programming** is fundamental to any programming language and even machine language is imperative. Internally other programming paradigm in some way or the other use imperative style internally but abstracts this out for the caller. **Imperative style is mostly sequential and follows a natural flow**, hence it is easy to write, debug and troubleshoot. In most case this offers better raw performance than other.
11+
12+
**Functional programming** is treating computation as “**mathematical functions**”, using pure function without side effect which does not change state. State are immutable in functional programming.
13+
14+
**Reactive programming** is typically **asynchronous events data stream over time and its propagation of change**. It is built on observable (publish/subscribe) & iterator pattern. Generally there are also functional programming and reactive programming done together for transformation of one streams to another.
15+
###### Relative links:
16+
- https://www.webagam.com/2018/11/24/imperative-functional-reactive-programming-which-one-to-use-when-and-for-what/

0 commit comments

Comments
 (0)