Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Frp | 74,517 | 18 | 2 days ago | 93 | October 24, 2023 | 103 | apache-2.0 | Go | ||
A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet. | ||||||||||
Caddy | 50,840 | 460 | a day ago | 382 | October 11, 2023 | 139 | apache-2.0 | Go | ||
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS | ||||||||||
Nps | 27,742 | 3 days ago | 53 | October 09, 2021 | 471 | gpl-3.0 | Go | |||
一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal. | ||||||||||
Vapor | 23,393 | 75 | a day ago | March 07, 2023 | 91 | mit | Swift | |||
💧 A server-side Swift HTTP web framework. | ||||||||||
Postgrest | 21,405 | 4 | 10 hours ago | 37 | July 12, 2022 | 214 | mit | Haskell | ||
REST API for any Postgres database | ||||||||||
Aiohttp | 14,137 | 7,355 | 7,614 | 14 hours ago | 228 | November 26, 2023 | 496 | other | Python | |
Asynchronous HTTP client/server framework for asyncio and Python | ||||||||||
Http Server | 13,022 | 46,303 | 10,023 | 11 days ago | 49 | May 31, 2022 | 141 | mit | JavaScript | |
a simple zero-configuration command-line http server | ||||||||||
Chisel | 10,226 | 2 | 81 | 2 days ago | 31 | August 20, 2023 | 195 | mit | Go | |
A fast TCP/UDP tunnel over HTTP | ||||||||||
Warp | 8,697 | 73 | 491 | 5 days ago | 38 | September 27, 2023 | 222 | mit | Rust | |
A super-easy, composable, web server framework for warp speeds. | ||||||||||
Proxygen | 7,943 | 10 hours ago | 1 | July 05, 2023 | 31 | other | C++ | |||
A collection of C++ HTTP libraries including an easy to use HTTP server. |
A High Performance HTTP Server for Ruby
require 'agoo'
Agoo::Server.init(6464, 'root')
class MyHandler
def call(req)
[ 200, { }, [ "hello world" ] ]
end
end
handler = MyHandler.new
Agoo::Server.handle(:GET, "/hello", handler)
Agoo::Server.start()
# To run this example type the following then go to a browser and enter a URL
# of localhost:6464/hello.
#
# ruby hello.rb
require 'agoo'
class Query
def hello
'hello'
end
end
class Schema
attr_reader :query
def initialize
@query = Query.new()
end
end
Agoo::Server.init(6464, 'root', thread_count: 1, graphql: '/graphql')
Agoo::Server.start()
Agoo::GraphQL.schema(Schema.new) {
Agoo::GraphQL.load(%^type Query { hello: String }^)
}
sleep
# To run this GraphQL example type the following then go to a browser and enter
# a URL of localhost:6464/graphql?query={hello}
#
# ruby hello.rb
gem install agoo
As agoo supports rack compatible apps you can use it for rails applications:
Add agoo to the Gemfile:
# Gemfile
gem 'agoo'
Install bundle:
$ bundle install
Start rails with agoo as server:
$ rails server -u agoo
Enjoy the increased performance!
Agoo is Japanese for a type of flying fish. This gem flies. It is a high performance HTTP server that serves static resource at hundreds of thousands of fetches per second. A simple hello world Ruby handler at over 100,000 requests per second on a desktop computer. That places Agoo at about 85 times faster than Sinatra and 1000 times faster than Rails. In both cases the latency was two orders of magnitude lower or more. Checkout the benchmarks. Note that the benchmarks had to use a C program called Perfer to hit the Agoo limits. Ruby benchmarks driver could not push Agoo hard enough.
Agoo supports the Ruby rack API which allows for the use of rack compatible gems such as Hanami and Rails. Agoo also supports WebSockets and SSE.
Agoo is not available on Windows.
Version 2.11.0 supports GraphQL subscriptions. TLS (SSL,HTTPS) support added. Examples for both. Related, the graphql-benchmark repo was given to the-benchmarker.
Agoo has a new GraphQL module with a simple, easy to use API. Checkout the hello or song examples. An Instrumental Intro to GraphQL with Ruby is a walk through.
Agoo takes first place as the highest throughput on web-frameworks benchmarks. Latency was not at the top but release 2.5.2 improves that. The Agoo-C benchmarks it at the top. The fastest web server across all languages.
Clustered Agoo is ready. For slower application and a machine with multiple cores a significant improvement is performance is realized. The application must be stateless in that no data is shared between workers.
WebSocket and SSE are supported and a PR has been submitted to updated the Rack spec. Go over to the proposed Rack extension and give it a look and a thumbs-up or heart if you like it.
Agoo now serves Rails static assets more than 8000 times faster than the default Puma. Thats right, 8000 times faster.
Releases are made from the master branch. The default branch for checkout is the develop branch. Pull requests should be made against the develop branch.
Get supported Agoo with a Tidelift Subscription. Security updates are supported.
Documentation: http://rubydoc.info/gems/agoo or http://www.ohler.com/agoo/doc/index.html
GitHub repo: ohler55/agoo
RubyGems repo: https://rubygems.org/gems/agoo
WABuR repo: ohler55/wabur has an option to use Agoo
Perfer repo: ohler55/perfer