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
Spinning up microservices using Ruby/Kafka
Search
Ankita
June 24, 2017
Technology
170
0
Share
Spinning up microservices using Ruby/Kafka
Learn how to create your own ruby applications and link them up using Kafka
Ankita
June 24, 2017
More Decks by Ankita
See All by Ankita
Using and Optimising GraphQl with Rails
ankitagupta12
2
650
Other Decks in Technology
See All in Technology
【技術書典20】OpenFOAM(自宅で深める流体解析)流れと熱移動(2)
kamakiri1225
0
350
20年前の「OSS革命」に学ぶ AI時代の生存戦略
samakada
0
510
プラットフォームエンジニアリングの実践 - AWS コンテナサービスで構築する社内プラットフォーム / AWS Containers Platform Meetup #1
literalice
1
230
AgentCore Managed Harness を使ってみよう
yakumo
2
280
Anthropic「Long-running a gents」をGeminiで再現してみた
tkikuchi
0
750
コミュニティ・勉強会を作るのは目的じゃない
ohmori_yusuke
0
280
要件定義の精度を高めるための型と生成AIの活用 / Using Types and Generative AI to Improve the Accuracy of Requirements Definition
haru860
0
250
ファインディの事業拡大を支える 拡張可能なデータ基盤へのリアーキテクチャ
hiracky16
0
680
AIが盛んな時代に 技術記事を書き始めて起きた私の中での小さな変化
peintangos
0
340
Building a Study Buddy AI Agent from Scratch: From Passive Chatbots to Autonomous Systems
itchimonji
0
110
大学職員のための生成AI最前線 :最前線を、AIガバナンスとして読み直すためのTips
gmoriki
0
2.1k
AI時代に越境し、 組織を変えるQAスキルの正体 / QA Skills for Transforming an Organization
mii3king
0
270
Featured
See All Featured
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
270
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
530
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
190
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
270
Site-Speed That Sticks
csswizardry
13
1.2k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
170
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.9k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
For a Future-Friendly Web
brad_frost
183
10k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
130
Transcript
Private & Confidential Spinning up microservices using Ruby/Kafka ankitagupta12
Private & Confidential API v/s Event Stream
Private & Confidential An event stream limits the concern of
publishing service to broadcasting a message when an event occurs i.e. fire and forget What is an event stream?
Private & Confidential Kafka is a distributed, partitioned, replicated commit
log service
Private & Confidential Kafka clusters contain topics that can be
subscribed to by multiple consumers
Private & Confidential Producer. Publishes messages Consumer. Subscribes to messages
Topic. Category of messages Key Definitions
Private & Confidential So what does this look like in
practice?
Private & Confidential Pheromone. https://github.com/ankitagupta12/pheromone Pheromone allows easy publishing of
changes (inserts and updates) in ActiveRecord models to topics in Kafka. Setting up your first Producer
Private & Confidential Setting up a Producer using Pheromone
Private & Confidential Karafka. https://github.com/karafka/karafka Karafka is a higher level
abstraction on raw Kafka drivers, providing tools to set up consumers for multiple topics within a single application. Setting up your first Consumer
Private & Confidential Register a consumer and topic
Private & Confidential Add in the consumer logic
Private & Confidential Thank you