From 849fab7227a2fd1ff5fa4d603ba89037e1c462b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 26 May 2020 09:54:54 +0200 Subject: Cowboy 2.8.0 --- docs/en/cowboy/2.8/guide/performance/index.html | 186 ++++++++++++++++++++++++ 1 file changed, 186 insertions(+) create mode 100644 docs/en/cowboy/2.8/guide/performance/index.html (limited to 'docs/en/cowboy/2.8/guide/performance/index.html') diff --git a/docs/en/cowboy/2.8/guide/performance/index.html b/docs/en/cowboy/2.8/guide/performance/index.html new file mode 100644 index 00000000..4c81fe27 --- /dev/null +++ b/docs/en/cowboy/2.8/guide/performance/index.html @@ -0,0 +1,186 @@ + + + + + + + + + + Nine Nines: Performance + + + + + + + + + + + + + + + + +
+
+
+
+ +

Performance

+ +

This chapter describes the performance characteristics of Cowboy and offers suggestions to get the most performance out of your application.

+

One process per connection

+

The first version of Cowboy featured a single process per connection, whereas the current version of Cowboy features one process per connection plus one process per request. This has a negative impact on performance, but is necessary in order to provide a common interface for both HTTP/1.1 and HTTP/2 (as well as future HTTP versions).

+

It is still possible to use a single process per connection, and avoid the creation of additional processes for each request, by implementing a stream handler to process the requests. This can be done for all requests, or just for a single endpoint depending on the application's needs.

+

Stream handlers provide an asynchronous interface and must not block, so the implementation will be very different from normal Cowboy handlers, but the performance gains are important enough to justify it in some cases.

+ + + + + + + + + + + + + + + + +
+ +
+ + +

+ Cowboy + 2.8 + + User Guide +

+ + + +

Navigation

+ +

Version select

+ + +

Like my work? Donate!

+

Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:

+
+ + + + + + + + + +

Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.

+ + + +
+
+
+
+ + + + + + + + + -- cgit v1.2.3