Need advice about which tool to choose?Ask the StackShare community!
Tornado vs Yesod: What are the differences?
Developers describe Tornado as "A Python web framework and asynchronous networking library, originally developed at FriendFeed". By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user. On the other hand, Yesod is detailed as "A RESTful Haskell web framework built on WAI". Yesod believes in the philosophy of making the compiler your ally, not your enemy. We use the type system to enforce as much as possible, from generating proper links, to avoiding XSS attacks, to dealing with character encoding issues. In general, if your code compiles, it works. And instead of declaring types everywhere you let the compiler figure them out for you with type inference.
Tornado and Yesod can be primarily classified as "Frameworks (Full Stack)" tools.
"Open source" is the top reason why over 34 developers like Tornado, while over 5 developers mention "Haskell" as the leading cause for choosing Yesod.
Tornado and Yesod are both open source tools. It seems that Tornado with 18K GitHub stars and 4.98K forks on GitHub has more adoption than Yesod with 2.11K GitHub stars and 329 GitHub forks.
According to the StackShare community, Tornado has a broader approval, being mentioned in 69 company stacks & 16 developers stacks; compared to Yesod, which is listed in 5 company stacks and 5 developer stacks.
Pros of Tornado
- Open source37
- So fast31
- Great for microservices architecture27
- Websockets20
- Simple17
- Asynchronous14
- Python11
- Lightweight7
- Handles well persistent connexions3
Pros of Yesod
- Haskell6
- Super High Performance4
- Open source3
- Type safe URLs2
Sign up to add or upvote prosMake informed product decisions
Cons of Tornado
- Event loop is complicated2