forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 0
Draft for post on monolith vs serverless. #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chrishowejones
wants to merge
1
commit into
master
Choose a base branch
from
monolith-vs-serverless
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 2.7.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| --- | ||
| title: "Is serverless dead?" | ||
| excerpt: "TBD" | ||
| layout: single | ||
| comments: true | ||
| read_time: true | ||
| share: true | ||
| related: true | ||
| tags: | ||
| - serverless | ||
| - monolith | ||
| - software architecture | ||
| header: | ||
| overlay_image: /assets/images/New DevCycle Logo.png | ||
| overlay_filter: 0.25 # same as adding an opacity of 0.5 to a black background | ||
| caption: "TBD" | ||
| teaser: /assets/images/New DevCycle Logo.png | ||
|
|
||
| --- | ||
|
|
||
| # Is serverless dead? # | ||
|
|
||
| There's been lots of talk recently about something I've been talking about for years, serverless architecture vs | ||
| monolithic architecture, this conversation was sparked by this | ||
| [blog](https://www.primevideotech.com/video-streaming/scaling-up-the-prime-video-audio-video-monitoring-service-and-reducing-costs-by-90) | ||
| written by Marcin Kolny describing how the Prime Video team re-architected their audio/video monitoring service from | ||
| using serverless components to a monolith. | ||
|
|
||
| The arguments presented following the publishing of this blog can mostly be summarised as; | ||
|
|
||
| > [Serverless is dead and was a terrible idea in the first place](https://world.hey.com/dhh/even-amazon-can-t-make-sense-of-serverless-or-microservices-59625580) | ||
|
|
||
| ## What is serverless, what is a monolith? ## | ||
|
|
||
| First we have to turn to some definitions, what is serverless? | ||
|
|
||
| > Serverless computing is a cloud computing execution model in which the cloud provider allocates machine resources on | ||
| > demand, taking care of the servers on behalf of their customers. | ||
|
|
||
| So serverless is an execution model and has nothing directly to say about how we organise functionality. However, most | ||
| serverless architectures tend to encourage separating functionality into small independently deployable execution units | ||
| that communicate with calls across a network (synchronous or asynchronous). | ||
|
|
||
| How about a monolith? | ||
|
|
||
| > a monolithic application is a single unified software application which is self-contained and independent from other | ||
| > applications... | ||
|
|
||
| So a monolith is a pattern of organising functionality into a single deployment/execution unit which doesn't need other | ||
| 'applications' to carry out it's function. | ||
|
|
||
| These definitions are terms of art. For example, unless your application is completely self contained on your device and | ||
| has no requirement to connect to any other device then is it really a 'self-contained'? What does self-contained mean? | ||
| All high level applications rely on the underlying services of an operating system and most rely on some data store, | ||
| does that mean they're not a monolith? Almost all modern applications consist of a client/server architecture, does this | ||
| mean they're not a monolith? | ||
|
|
||
| So for the purposes of this discussion I'll use some somewhat subjective definitions. | ||
|
|
||
| > A serverless application is one where the functionality not directly involved in the user interface is divided into | ||
| > multiple deployment units (excluding any generic datastore) that are allocated on demand by a cloud provider. | ||
|
|
||
| and | ||
|
|
||
| > A monolithic application is one where the functionality not directly involved in the user interface is consolidated in | ||
| > one deployment unit (excluding any generic datastore). | ||
|
|
||
| Note, I've used the term 'deployment unit' and not 'execution unit' as I want to draw the distinction between run time | ||
| organisation and build/deployment time organisation. An application can be monolithic even if there are multiple | ||
| instances running provided each instance is a copy of the same deployment unit. | ||
|
|
||
| ## Why use serverless or monolith? ## | ||
|
|
||
| People more steeped in the technologies than me have discussed the benefits of serverless architecture so I will | ||
| summarise my 'take' on the reasons for using it: | ||
|
|
||
| + Respond to requests on demand especially when they are intermittent and 'peaky' | ||
| + (Arguably) reduce the time spent on maintaining infrastructure | ||
| + Code can run closer to the user, decreasing network latency | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pick an appropriate excerpt here.