README.md in rage-rb-1.6.0 vs README.md in rage-rb-1.7.0
- old
+ new
@@ -13,11 +13,11 @@
* **High performance** - some think performance is not a major metric for a framework, but it's not true. Poor performance is a risk, and in today's world, companies refuse to use risky technologies.
* **API-only** - separation of concerns is one of the most fundamental principles in software development. Backend and frontend are very different layers with different goals and paths to those goals. Separating BE code from FE code results in a much more sustainable architecture compared with classic Rails monoliths.
-* **Acceptance of modern Ruby** - the framework includes a fiber scheduler, which means your code never blocks while waiting on IO.
+* **Acceptance of modern Ruby** - the framework includes a fiber scheduler, which means your code never blocks while waiting on I/O.
## Installation
Install the gem:
```
@@ -114,37 +114,51 @@
render json: { pages: pages }
end
end
```
-:information_source: **Note**: When using `Fiber.await`, it is important to wrap any instance of IO into a fiber using `Fiber.schedule`.
+:information_source: **Note**: When using `Fiber.await`, it is important to wrap every argument into a fiber using `Fiber.schedule`.
## Benchmarks
-#### hello world
+#### Hello World
```ruby
-class ArticlesController < ApplicationController
+class BenchmarksController < ApplicationController
def index
render json: { hello: "world" }
end
end
```
-
-#### waiting on IO
+
+#### Waiting on I/O
+
```ruby
require "net/http"
-class ArticlesController < ApplicationController
+class BenchmarksController < ApplicationController
def index
Net::HTTP.get(URI("<endpoint-that-responds-in-one-second>"))
head :ok
end
end
```
-
+
+
+
+#### Using ActiveRecord
+
+```ruby
+class BenchmarksController < ApplicationController
+ def show
+ render json: World.find(rand(10_000))
+ end
+end
+```
+
+
## Upcoming releases
Status | Changes
-- | ------------