Need advice about which tool to choose?Ask the StackShare community!

Lwan

1
6
+ 1
4
Unicorn

494
397
+ 1
295
Add tool

Lwan vs Unicorn: What are the differences?

What is Lwan? Experimental, scalable, high performance HTTP server. In development for almost 3 years, Lwan was until now a personal research effort that focused mostly on building a solid infrastructure for a lightweight and speedy web server.

What is Unicorn? Rack HTTP server for fast clients and Unix. Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be served by placing a reverse proxy capable of fully buffering both the the request and response in between Unicorn and slow clients.

Lwan and Unicorn can be categorized as "Web Servers" tools.

Lwan and Unicorn are both open source tools. It seems that Lwan with 5.01K GitHub stars and 524 forks on GitHub has more adoption than Unicorn with 1.35K GitHub stars and 249 GitHub forks.

Advice on Lwan and Unicorn
Mark Ndungu
Software Developer at Nouveta · | 4 upvotes · 27.4K views
Needs advice
on
PumaPuma
and
UnicornUnicorn

I have an integration service that pulls data from third party systems saves it and returns it to the user of the service. We can pull large data sets with the service and response JSON can go up to 5MB with gzip compression. I currently use Rails 6 and Ruby 2.7.2 and Puma web server. Slow clients tend to prevent other users from accessing the system. Am considering a switch to Unicorn.

See more
Replies (1)
Recommends
on
PumaPuma

Consider trying to use puma workers first. puma -w basically. That will launch multiple puma processes to manage the requests, like unicorn, but also run threads within those processes. You can turn the number of workers and number of threads to find the right memory footprint / request per second balance.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Lwan
Pros of Unicorn
  • 1
    C and Lua Scripting
  • 1
    Free
  • 1
    High-performance http server
  • 1
    Performance
  • 81
    Fast
  • 59
    Performance
  • 36
    Web server
  • 30
    Very light
  • 30
    Open Source
  • 27
    Rack http server
  • 18
    Load balancing
  • 14
    Great process management

Sign up to add or upvote prosMake informed product decisions

Cons of Lwan
Cons of Unicorn
    Be the first to leave a con
    • 4
      Not multithreaded

    Sign up to add or upvote consMake informed product decisions

    What is Lwan?

    In development for almost 3 years, Lwan was until now a personal research effort that focused mostly on building a solid infrastructure for a lightweight and speedy web server.

    What is Unicorn?

    Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be served by placing a reverse proxy capable of fully buffering both the the request and response in between Unicorn and slow clients.

    Need advice about which tool to choose?Ask the StackShare community!

    Jobs that mention Lwan and Unicorn as a desired skillset
    What companies use Lwan?
    What companies use Unicorn?
      No companies found
      See which teams inside your own company are using Lwan or Unicorn.
      Sign up for StackShare EnterpriseLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      Blog Posts

      GitHubMySQLSlack+44
      109
      50666
      What are some alternatives to Lwan and Unicorn?
      NGINX
      nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. According to Netcraft nginx served or proxied 30.46% of the top million busiest sites in Jan 2018.
      Apache HTTP Server
      The Apache HTTP Server is a powerful and flexible HTTP/1.1 compliant web server. Originally designed as a replacement for the NCSA HTTP Server, it has grown to be the most popular web server on the Internet.
      Apache Tomcat
      Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.
      Microsoft IIS
      Internet Information Services (IIS) for Windows Server is a flexible, secure and manageable Web server for hosting anything on the Web. From media streaming to web applications, IIS's scalable and open architecture is ready to handle the most demanding tasks.
      OpenResty
      OpenResty (aka. ngx_openresty) is a full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules, as well as most of their external dependencies.
      See all alternatives