Advanced Technology Days18. i 19. studenog 2015., Cinestar Arena Centar
ASP.NET WebHookspush notifikacije u web svijetu?Vladan Strigohttp://netmedia.io
Vladan Strigo• NETmedia
‐ CTO‐ ASP.NET / Hybrid mobile / JS*‐ Outsourcing
• Community‐ Ex-ASP.NET MVP‐ DevUG Split / Speaker‐ Involved in open-source
Web?
Server ClientRESPONSE
REQUEST
Web – promjene?Serve
r ClientRESPONSE
REQUEST
TIM
E
RESPONSE
REQUEST
RESPONSE
REQUEST
Web – bolji način – push!Serve
r ClientRESPONSE
REQUEST
TIM
E
PROMJENE
PROMJENE
PROMJENE
Web hooks?• Lightweight HTTP pattern• Request based output vs. Event based output
mehanizam• Pub/sub model
‐ Events‐ Subscriptions- Callback- POST
• Zašto HTTP? Jednostavnost!• 2007!!!
Web hooks?
Pošiljatelj
Server, servis...naša
aplikacija?
Primatelj
Klijent(i)...naša
aplikacija?
SUBSCRIBE
PUBLISH EVENTS
POST
POST
POST
UNSUBSCRIBE
Ne samo vlastiti! Tko koristi?• Dropbox• GitHub• Instagram• MailChimp• PayPal• Slack• Trello• ...
Microsoft?• Zašto?
‐ Jednostavnost i standardiziranost• Primanje
‐ Podrška za vanjske servise out of the box• Azure Alerts, Dropbox, GitHub, Kudu, Instagram,
MailChimp, PayPal, Pusher, Salesforce, Slack, Stripe, Trello, WordPress...
• Custom servisi, Json servisi, naši servisi• Slanje• Objava evenata• Praćenje subscriptiona – Azure / SQL / InMemory• Objava promjena
KOOD
Web hooks i WebHooks• Web hooks
‐ Lightweight HTTP pattern‐ Request based output vs. Event based output
mehanizam‐ Pub/sub model (...Events, Subscriptions, Callback, POST...)
- WebHooks- Microsoftova podrška za rad sa Web hooksima- Podrška za slanje i primanje- Primanje out of the box za hrpu modernih servisa
[email protected]://netmedia.io/
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.