Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Faye URUG Presentation
Search
David Moulton
August 14, 2012
Programming
93
1
Share
Faye URUG Presentation
Presentation on the basics of using the Faye gem in Ruby on Rails.
David Moulton
August 14, 2012
More Decks by David Moulton
See All by David Moulton
OpenWest Ionic Presentation
dmoulton
2
83
Rails Caching Basics
dmoulton
0
110
Other Decks in Programming
See All in Programming
Don't Prompt Harder, Structure Better
kitasuke
0
720
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
500
実践CRDT
tamadeveloper
0
480
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
260
RSAが破られる前に知っておきたい 耐量子計算機暗号(PQC)入門 / Intro to PQC: Preparing for the Post-RSA Era
mackey0225
3
130
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
20
7.9k
Vibe NLP for Applied NLP
inesmontani
PRO
0
380
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
210
おれのAgentic Coding 2026/03
tsukasagr
1
140
Nuxt Server Components
wattanx
0
270
メッセージングを利用して時間的結合を分離しよう #phperkaigi
kajitack
3
590
Coding at the Speed of Thought: The New Era of Symfony Docker
dunglas
0
4.9k
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
150
Measuring & Analyzing Core Web Vitals
bluesmoon
9
810
Raft: Consensus for Rubyists
vanstee
141
7.4k
The Curse of the Amulet
leimatthew05
1
11k
First, design no harm
axbom
PRO
2
1.2k
Documentation Writing (for coders)
carmenintech
77
5.3k
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
BBQ
matthewcrist
89
10k
Evolving SEO for Evolving Search Engines
ryanjones
0
180
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Transcript
David Moulton @dmoulton
[email protected]
Snaga on IRC
About Me
2 of these
Only 1 of these
Too many of these
Other stuff I've been known to do
Faye is a publish-subscribe messaging system based on the Bayeux
protocol. It provides message servers for Node. js and Ruby, and clients for use on the server and in all major web browsers.
How? Server publishes to named channels Client subscribes to channels
Rails Faye Setup Add to Gemfile: private_pub thin Create private_pub.ru
rackup faye.ru -s thin -E production
Assets application.js //= require private_pub
Basics Publishing PrivatePub.publish_to(<CHANNEL>,<JAVASCRIPT>) Subscribing <%= subscribe_to <CHANNEL> %>
Codes
http://faye.jcoglan.com/ https://github.com/faye/faye http://railscasts.com/episodes/260-messaging-with-faye http://railscasts.com/episodes/316-private-pub? view=asciicast http://svn.cometd.com/trunk/bayeux/bayeux.html https://github.com/ryanb/private_pub https://github.com/dmoulton/fayedemo