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
Websocket en WAMP in sPHPace
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Davy De Coster
May 26, 2020
Programming
0
160
Websocket en WAMP in sPHPace
Davy De Coster
May 26, 2020
Tweet
Share
Other Decks in Programming
See All in Programming
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
170
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
730
Data-Centric Kaggle
isax1015
2
770
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.1k
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
190
AgentCoreとHuman in the Loop
har1101
5
230
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
460
Package Management Learnings from Homebrew
mikemcquaid
0
220
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
Between Models and Reality
mayunak
1
190
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
250
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
The agentic SEO stack - context over prompts
schlessera
0
630
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.1k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
54
Technical Leadership for Architectural Decision Making
baasie
1
240
Transcript
Websocket en WAMP in sPHPace
About
Davy De Coster Backend Developer @ Ocular Twitter: @davydecoster
None
None
Websocket?
Websocket Protocol • Bestaat sinds 2010 – RFC sinds december
2011 (https://tools.ietf.org/html/rfc6455) • Realtime communicatiekanaal • Lage overhead tov polling • ws:// en wss:// • Meerdere subprotocollen • Veel gebruikt: socket.io
Websocket in PHP • Ratchet Package (http://socketo.me/) • Websocket server
in PHP
DEMO
Subprotocollen • Meerdere implementaties (https://www.iana.org/assignments/websocket/websocket.xml)
WAMP?
WAMP • Web Application Messaging Protocol • Crossbar.io • Publish
& Subscribe naar topics (PubSub) • Remote Procedure Call (RPC) • Veel gebruikt bij IoT
Crossbar.io - Connection & security • Python • Realms •
Namespace • Roles • Security • Authentication • Veel platformen kunnen hiermee connecteren • Build in Docker container • Data in args en kwargs
PubSub • Topic = ‘be.ocular.demo’ • Subscribe om events te
ontvangen • Publish om event te sturen
RPC • Registreer procedure op topic (‘be.ocular.doe.iets’) • Procedure is
uniek • Call een topic om de procedure uit te voeren • Procedure kan iets returnen naar caller
WAMP - Schema
WAMP in PHP • Voryx/Thruway (https://github.com/voryx/Thruway) • Non-blocking
DEMO
Real-life voorbeelden
None
None
None
Questions?
Merci!