Skip to content

Commit

Permalink
docs: clarify some of the reasons to use this project
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateu Aguiló Bosch committed May 30, 2018
1 parent 714b4ed commit 2a4f4d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .emdaer/docs/why.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ node.js server for your project anyways**. You may as well use an opinionated
and optimized starter kit that will solve many of your needs without effort.

### Microservices
If your API needs to aggregate data from other services you **should not** use
PHP for that. That is because all I/O in PHP is blocking and the performance of
these tasks is very poor.
If your API needs to aggregate data for use on the front-end from other services
you **should not** use PHP for that. That is because, in practice, all I/O in
Drupal is blocking and the performance of these tasks is usually very poor.

An example of this would be if you are showing weather data from a 3rd party
API. Another example is if you need to make requests to an analytics tool.
Another example is if you need to run a request through an anti-fraud service
before accessing the content.

In these situations you will want to treat **Contenta CMS** just as any other
microservice. Then you will need a node.js server to orchestrate the different
microservices.
microservice. Then you will need a server, like this one written in node.js, to
orchestrate the different microservices.

### Server-Side Rendering
Chances are that you are building a website as part of your digital project. In
Expand All @@ -31,7 +31,7 @@ etc. All of those frameworks recommend using server-side rendering
server-side rendering you will need a node.js server.

You can use this node.js server (aka _ContentaJS_) to implement server-side
rendering.
rendering on.

### Performance
Your LAMP stack (or alternative) runs your Contenta CMS installation. We all
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,24 @@ data from Contenta CMS, others won’t.</p>
node.js server for your project anyways</strong>. You may as well use an opinionated
and optimized starter kit that will solve many of your needs without effort.</p>
<h3 id="microservices">Microservices</h3>
<p>If your API needs to aggregate data from other services you <strong>should not</strong> use
PHP for that. That is because all I/O in PHP is blocking and the performance of
these tasks is very poor.</p>
<p>If your API needs to aggregate data for use on the front-end from other services
you <strong>should not</strong> use PHP for that. That is because, in practice, all I/O in
Drupal is blocking and the performance of these tasks is usually very poor.</p>
<p>An example of this would be if you are showing weather data from a 3rd party
API. Another example is if you need to make requests to an analytics tool.
Another example is if you need to run a request through an anti-fraud service
before accessing the content.</p>
<p>In these situations you will want to treat <strong>Contenta CMS</strong> just as any other
microservice. Then you will need a node.js server to orchestrate the different
microservices.</p>
microservice. Then you will need a server, like this one written in node.js, to
orchestrate the different microservices.</p>
<h3 id="server-side-rendering">Server-Side Rendering</h3>
<p>Chances are that you are building a website as part of your digital project. In
most cases you will be using a front-end framework like React, Vue, Angular,
etc. All of those frameworks recommend using server-side rendering
<a href="https://ssr.vuejs.org/#why-ssr">for many reasons</a>. In order to implement
server-side rendering you will need a node.js server.</p>
<p>You can use this node.js server (aka <em>ContentaJS</em>) to implement server-side
rendering.</p>
rendering on.</p>
<h3 id="performance">Performance</h3>
<p>Your LAMP stack (or alternative) runs your Contenta CMS installation. We all
know how flexible and powerful Drupal is. But at the same time it is not great
Expand Down

0 comments on commit 2a4f4d1

Please sign in to comment.