[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7773":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":28,"discoverSource":29},7773,"eventmachine","eventmachine\u002Feventmachine","EventMachine: fast, simple event-processing library for Ruby programs","",null,"Ruby",4283,633,102,175,0,2,3,1,61.71,"Other",false,"master",true,[],"2026-06-12 04:00:35","# About EventMachine  [![Build Status](https:\u002F\u002Fgithub.com\u002Feventmachine\u002Feventmachine\u002Factions\u002Fworkflows\u002Fworkflow.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Feventmachine\u002Feventmachine\u002Factions) [![Code Climate Maintainability](https:\u002F\u002Fapi.codeclimate.com\u002Fv1\u002Fbadges\u002Fe9b0603462905d5b9118\u002Fmaintainability)](https:\u002F\u002Fcodeclimate.com\u002Fgithub\u002Feventmachine\u002Feventmachine\u002Fmaintainability)\n\n\n## What is EventMachine ##\n\nEventMachine is an event-driven I\u002FO and lightweight concurrency library for Ruby.\nIt provides event-driven I\u002FO using the [Reactor pattern](http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FReactor_pattern),\nmuch like [JBoss Netty](http:\u002F\u002Fwww.jboss.org\u002Fnetty), [Apache MINA](http:\u002F\u002Fmina.apache.org\u002F),\nPython's [Twisted](http:\u002F\u002Ftwistedmatrix.com), [Node.js](http:\u002F\u002Fnodejs.org), libevent and libev.\n\nEventMachine is designed to simultaneously meet two key needs:\n\n * Extremely high scalability, performance and stability for the most demanding production environments.\n * An API that eliminates the complexities of high-performance threaded network programming,\n   allowing engineers to concentrate on their application logic.\n\nThis unique combination makes EventMachine a premier choice for designers of critical networked\napplications, including Web servers and proxies, email and IM production systems, authentication\u002Fauthorization\nprocessors, and many more.\n\nEventMachine has been around since the early 2000s and is a mature and battle-tested library.\n\n\n## What EventMachine is good for? ##\n\n * Scalable event-driven servers. Examples: [Thin](https:\u002F\u002Fgithub.com\u002Fmacournoyer\u002Fthin\u002F) or [Goliath](https:\u002F\u002Fgithub.com\u002Fpostrank-labs\u002Fgoliath\u002F).\n * Scalable asynchronous clients for various protocols, RESTful APIs and so on. Examples: [em-http-request](https:\u002F\u002Fgithub.com\u002Figrigorik\u002Fem-http-request) or [amqp gem](https:\u002F\u002Fgithub.com\u002Fruby-amqp\u002Famqp).\n * Efficient network proxies with custom logic. Examples: [Proxymachine](https:\u002F\u002Fgithub.com\u002Fmojombo\u002Fproxymachine\u002F).\n * File and network monitoring tools. Examples: [eventmachine-tail](https:\u002F\u002Fgithub.com\u002Fjordansissel\u002Feventmachine-tail) and [logstash](https:\u002F\u002Fgithub.com\u002Flogstash\u002Flogstash).\n\n\n\n## What platforms are supported by EventMachine? ##\n\nEventMachine supports Ruby 2.0.0 and later (see tested versions at \n[.github\u002Fworkflows\u002Fworkflow.yml](.github\u002Fworkflows\u002Fworkflow.yml)). It runs on JRuby and **works well on Windows** \nas well as many operating systems from the Unix family (Linux, Mac OS X, BSD flavors).\n\n\n\n## Install the gem ##\n\nInstall it with [RubyGems](https:\u002F\u002Frubygems.org\u002F)\n\n    gem install eventmachine\n\nor add this to your Gemfile if you use [Bundler](http:\u002F\u002Fgembundler.com\u002F):\n\n    gem 'eventmachine'\n\n\n\n## Getting started ##\n\nFor an introduction to EventMachine, check out:\n\n * [blog post about EventMachine by Ilya Grigorik](http:\u002F\u002Fwww.igvita.com\u002F2008\u002F05\u002F27\u002Fruby-eventmachine-the-speed-demon\u002F).\n * [EventMachine Introductions by Dan Sinclair](http:\u002F\u002Feverburning.com\u002Fnews\u002Feventmachine-introductions.html).\n\n\n### Server example: Echo server ###\n\nHere's a fully-functional echo server written with EventMachine:\n\n```ruby\n require 'eventmachine'\n\n module EchoServer\n   def post_init\n     puts \"-- someone connected to the echo server!\"\n   end\n\n   def receive_data data\n     send_data \">>>you sent: #{data}\"\n     close_connection if data =~ \u002Fquit\u002Fi\n   end\n\n   def unbind\n     puts \"-- someone disconnected from the echo server!\"\n   end\nend\n\n# Note that this will block current thread.\nEventMachine.run {\n  EventMachine.start_server \"127.0.0.1\", 8081, EchoServer\n}\n```\n\n\n## EventMachine documentation ##\n\nCurrently we only have [reference documentation](http:\u002F\u002Frubydoc.info\u002Fgithub\u002Feventmachine\u002Feventmachine\u002Fframes) and a [wiki](https:\u002F\u002Fgithub.com\u002Feventmachine\u002Feventmachine\u002Fwiki).\n\n\n## Community and where to get help ##\n\n * Join the [mailing list](http:\u002F\u002Fgroups.google.com\u002Fgroup\u002Feventmachine) (Google Group)\n * Join IRC channel #eventmachine on irc.freenode.net\n\n\n## License and copyright ##\n\nEventMachine is copyrighted free software made available under the terms\nof either the GPL or Ruby's License.\n\nCopyright: (C) 2006-07 by Francis Cianfrocca. All Rights Reserved.\n\n\n## Alternatives ##\n\nIf you are unhappy with EventMachine and want to use Ruby, check out [Celluloid](https:\u002F\u002Fgithub.com\u002Fcelluloid\u002Fcelluloid).\n","EventMachine 是一个为 Ruby 程序设计的快速、简单的事件处理库。它基于 Reactor 模式，提供事件驱动的 I\u002FO 和轻量级并发支持，旨在实现高可扩展性、性能和稳定性的同时，简化了高性能网络编程的复杂度，使开发者能够更专注于应用逻辑本身。该项目非常适合用于构建需要处理大量并发连接的服务端应用，例如Web服务器、代理服务、电子邮件与即时消息系统等。此外，EventMachine 也适用于开发高效的网络监控工具及自定义逻辑的网络代理。作为一个成熟且经过广泛测试的库，EventMachine 支持 Ruby 2.0.0 及更高版本，并能在多种操作系统上良好运行，包括 Windows 和 Unix 系列。","2026-06-11 03:14:18","top_language"]