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
RORO 06/2012 - Bustle & API Taster
Search
Fred Wu
June 28, 2012
Programming
0
120
RORO 06/2012 - Bustle & API Taster
Fred Wu
June 28, 2012
Tweet
Share
More Decks by Fred Wu
See All by Fred Wu
RubyConf China 17/11/2012 - Become a Better Developer You Can
fredwu
11
1.9k
RubyConf China 17/11/2012 - [UNCUT] Become a Better Developer You Can
fredwu
31
1.8k
Other Decks in Programming
See All in Programming
Honoのおもしろいミドルウェアをみてみよう
yusukebe
1
210
2,500万ユーザーを支えるSREチームの6年間のスクラムのカイゼン
honmarkhunt
6
5.3k
ファインディの テックブログ爆誕までの軌跡
starfish719
2
1.1k
一休.com のログイン体験を支える技術 〜Web Components x Vue.js 活用事例と最適化について〜
atsumim
0
470
Multi Step Form, Decentralized Autonomous Organization
pumpkiinbell
1
740
Spring gRPC について / About Spring gRPC
mackey0225
0
220
XStateを用いた堅牢なReact Components設計~複雑なClient Stateをシンプルに~ @React Tokyo ミートアップ #2
kfurusho
1
900
Grafana Loki によるサーバログのコスト削減
mot_techtalk
1
130
ソフトウェアエンジニアの成長
masuda220
PRO
10
1.1k
Formの複雑さに立ち向かう
bmthd
1
850
GitHub Actions × RAGでコードレビューの検証の結果
sho_000
0
260
Djangoアプリケーション 運用のリアル 〜問題発生から可視化、最適化への道〜 #pyconshizu
kashewnuts
1
250
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.2k
The Pragmatic Product Professional
lauravandoore
32
6.4k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
It's Worth the Effort
3n
184
28k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.4k
Scaling GitHub
holman
459
140k
A Tale of Four Properties
chriscoyier
158
23k
Designing Experiences People Love
moore
140
23k
Site-Speed That Sticks
csswizardry
4
380
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Transcript
@fredwu
API Taster Bustle
Bustle https://github.com/fredwu/bustle
Readme Driven Development RDD
Activities recording and retrieving using a simple Pub/Sub* architecture. *
At least on surface it is, lol.
None
Like Faye, Redis and ZeroMQ, etc A "traditional" pub/sub usually
involves 3rd party services
I want...
Really simple, perl devs would hate it Don't need to
support 100M (imaginary) users Works with ActiveRecord Can be extended/migrated to use with other data stores Decoupled from the main app
Bustle Overview Publisher Subscriber Subscription Active Record Persistence Layer w/
orm_adapter Redis Faye
Simple API Bustle::Publishers.add Bustle::Subscribers.add Bustle::Subscriptions.add Bustle::Publisher.publish Bustle::Subscriber.activities and a few
others ...
gem 'bustle'
https://github.com/fredwu/api_taster API Taster
It's insanely great.
Just kidding.
*For some, I hope. But it's useful.*
*Not just on surface!! (╯°□°)╯ ┻━┻ A quick and easy
way* to visually test your Rails application's API
None
It's a Chrome extension Every single API needs to be
manually defined Inputs (request data) need to be manually entered Can't share the inputs easily Postman is Awesome, But...
I want...
API endpoints are automatically generated from your Rails routes definition
Defining inputs is as easy as defining routes Post params can be shared with your test factories
None
Isn't it beautiful?
gem 'api_taster'
Demo