SlideShare a Scribd company logo
Introducing ASP.NET
SignalR
Presenter: Richi Padhi, Mindfire Solutions
Date: 7/1/2015
Presenter: Richi Padhi, Mindfire Solutions
Agenda
Introduction
How SignalR works?
SignalR API & Architecture
Demo
Security
Presenter: Richi Padhi, Mindfire Solutions
Introduction
Presenter: Richi Padhi, Mindfire Solutions
Introduction
What is SignalR?
ASP.NET SignalR is a library for ASP.NET developers that simplifies the process of
adding real-time web functionality to applications.
Library to maintain asynchronous (non blocking threads) over persistent connection
in ASP.NET applications.
What is "real-time web" functionality?
Real-time web functionality is the ability to have server code push content to
connected clients instantly as it becomes available, rather than having the server
wait for a client to request new data.
Example : Chat, Email, Stock Ticker, Game Live Score, Real-Time Gaming, Document
Collaboration
Presenter: Richi Padhi, Mindfire Solutions
Introduction
>> SignalR provides a simple API for creating server-to-client remote
procedure calls (RPC) that call JavaScript functions in client browsers (and
other client platforms) from server-side .NET code.
>> SignalR also includes API for connection management (for instance,
connect and disconnect events), and grouping connections also it handles
connection management automatically.
>> It can reach out to thousands of clients using Service Bus, SQL Server or
Redis.
>> Abstracts away the network layer for bidirectional real-time
communications, thus helping developers focus on building application.
Presenter: Richi Padhi, Mindfire Solutions
How SignalR Works?
Presenter: Richi Padhi, Mindfire Solutions
How SignalR Works?
>> SignalR allows bidirectional communication between client & server over
persistant connections
>> It provides simple APIs for RPC
>> SignalR chooses the best fit transport mechanisms for the given client and
server environment.
>> Manages and gives fine grained control over network layer and also has
an auto fallback mechanism.
Presenter: Richi Padhi, Mindfire Solutions
How SignalR Works?
Presenter: Richi Padhi, Mindfire Solutions
How SignalR Works?
Order of network transports
HTML 5 Transports :
>> WebSockets
>> Server Sent Events
Comet Transports (long-held HTTP request) :
>> Forever Frame
>> Ajax Long Polling
Presenter: Richi Padhi, Mindfire Solutions
How SignalR Works?
WebSockets
>> A new HTML5 API that enables bi-directional, full duplex communication
between the browser and server.
>> It is the new standard defined as a part of HTML 5 to solve two major problems
of current web:
Overhead of HTTP (Network Throughput)
Low Latency
>> Standardized
Presenter: Richi Padhi, Mindfire Solutions
How SignalR Works?
Server Sent Event
>> A technology where a browser receives automatic updates from a server via
HTTP connection. The Server-Sent Events EventSource API is standardized as part
of HTML5
>> This was also possible before, but the web page would have to ask if any
updates were available. With server-sent events, the updates come automatically.
>> Supported in all major browsers, except Internet Explorer.
Presenter: Richi Padhi, Mindfire Solutions
How SignalR Works?
Forever Frame
>> Forever Frame creates a hidden IFrame which makes a request to an endpoint
on the server that does not complete. The server then continually sends script to
the client which is immediately executed, providing a one-way realtime connection
from server to client.
>> The connection from client to server uses a separate connection from the
server to client connection, and like a standard HTML request, a new connection is
created for each piece of data that needs to be sent.
Presenter: Richi Padhi, Mindfire Solutions
How SignalR Works?
Ajax Long Polling
>> Long polling does not create a persistent connection, but instead polls the
server with a request that stays open until the server responds, at which point the
connection closes, and a new connection is requested immediately.
>> This may introduce some latency while the connection resets.
Presenter: Richi Padhi, Mindfire Solutions
How SignalR Works?
Fallback
Presenter: Richi Padhi, Mindfire Solutions
SignalR API & Architecture
Presenter: Richi Padhi, Mindfire Solutions
SignalR API & Architecture
The SignalR API contains two models for communicating between clients and
servers: Persistent Connections & Hubs
Connection
A Connection represents a simple endpoint for sending single-recipient, grouped,
or broadcast messages.
Persistent Connections
>> Low level access to communication
>> Direct developer access to network pipeline
>> Access to lot more communication events
>> Will be familiar to developers who have used connection-based APIs such as
WCF
Presenter: Richi Padhi, Mindfire Solutions
SignalR API & Architecture
Hubs
>> High level abstraction
>> Built on top of Persistent Connections
>> Least developer work
>> Works for majority of user
>> Will be familiar to developers who have used remote invocation APIs such as
.Net Remoting.
Presenter: Richi Padhi, Mindfire Solutions
SignalR API & Architecture
Architecture
Presenter: Richi Padhi, Mindfire Solutions
Demo
Presenter: Richi Padhi, Mindfire Solutions
Demo
>> First SignalR application
>> SignalR Hub and jQuery Demo
Presenter: Richi Padhi, Mindfire Solutions
Security
Presenter: Richi Padhi, Mindfire Solutions
Security
Presenter: Richi Padhi, Mindfire Solutions
Security
Presenter: Richi Padhi, Mindfire Solutions
References
http://www.asp.net/signalr
http://signalr.net/
http://www.pluralsight.com/courses/signalr-across-web-devices
https://github.com/SignalR/SignalR/wiki
Presenter: Richi Padhi, Mindfire Solutions
Question and
Answer
Presenter: Richi Padhi, Mindfire Solutions
Thank you ! :)

More Related Content

PDF
Introduction to SignalR
PPTX
SignalR Overview
PPTX
Introduction to SignalR
PPTX
Real-time ASP.NET with SignalR
PPSX
SignalR With ASP.Net part1
PPTX
SignalR with asp.net
PPTX
SignalR for ASP.NET Developers
PPTX
Introduction to React JS for beginners | Namespace IT
Introduction to SignalR
SignalR Overview
Introduction to SignalR
Real-time ASP.NET with SignalR
SignalR With ASP.Net part1
SignalR with asp.net
SignalR for ASP.NET Developers
Introduction to React JS for beginners | Namespace IT

What's hot (20)

PPTX
Rest API Security
PDF
Spring Security
PPTX
Rest API Security - A quick understanding of Rest API Security
PPT
Source Code Analysis with SAST
PDF
Exploiting Deserialization Vulnerabilities in Java
PDF
Going realtime with Socket.IO
PPTX
Spring boot
PDF
Spring Framework - AOP
ODP
Elasticsearch for beginners
PPTX
Build RESTful API Using Express JS
PPTX
REST API
PPTX
C# Async Await
PDF
Spring boot introduction
PPTX
REST API Design & Development
PDF
What is REST API? REST API Concepts and Examples | Edureka
PDF
Understanding Reactive Programming
PPTX
REST-API introduction for developers
PDF
Api Gateway
PDF
OAuth2 and Spring Security
PPTX
Token Authentication in ASP.NET Core
Rest API Security
Spring Security
Rest API Security - A quick understanding of Rest API Security
Source Code Analysis with SAST
Exploiting Deserialization Vulnerabilities in Java
Going realtime with Socket.IO
Spring boot
Spring Framework - AOP
Elasticsearch for beginners
Build RESTful API Using Express JS
REST API
C# Async Await
Spring boot introduction
REST API Design & Development
What is REST API? REST API Concepts and Examples | Edureka
Understanding Reactive Programming
REST-API introduction for developers
Api Gateway
OAuth2 and Spring Security
Token Authentication in ASP.NET Core
Ad

Viewers also liked (10)

PDF
Anatomy of a Modern Node.js Application Architecture
PPTX
Real time web applications with SignalR (BNE .NET UG)
PDF
ELEIÇÕES 2012 - ASTORGA: Toninho 31123
PPTX
Building Realtime Web Applications With ASP.NET SignalR
PPTX
«Real Time» Web Applications with SignalR in ASP.NET
PPTX
SignalR
PPTX
Real time web with SignalR
PDF
SignalR
PPTX
ASP.NET Web API and HTTP Fundamentals
KEY
Node.js - Best practices
Anatomy of a Modern Node.js Application Architecture
Real time web applications with SignalR (BNE .NET UG)
ELEIÇÕES 2012 - ASTORGA: Toninho 31123
Building Realtime Web Applications With ASP.NET SignalR
«Real Time» Web Applications with SignalR in ASP.NET
SignalR
Real time web with SignalR
SignalR
ASP.NET Web API and HTTP Fundamentals
Node.js - Best practices
Ad

Similar to Intro to signalR (20)

PPTX
SignalR Powered X-Platform Real-Time Apps!
PPTX
Real Time Web with SignalR
PPTX
SignalR powered real-time x-plat mobile apps!
PPTX
Real-time Communications with SignalR
PPTX
Real time Communication with Signalr (Android Client)
PPTX
Real-time web applications using SharePoint, SignalR and Azure Service Bus
PPTX
Brushing skills on SignalR for ASP.NET developers
PPTX
Signal R 2015
PPTX
Real Time Apps with SignalR Core
PPTX
signalr
PPTX
ASP.NET MVC 5 and SignalR 2
PDF
SignalR
PPTX
Asynchrone Echtzeitanwendungen fĂŒr SharePoint mit SignalR und knockout.js
PPTX
SignalR Intro + WPDev
PPTX
SignalR Intro + WPDev integration @ Codetock
PPTX
How To Build Real-Time Applications With ASP.NET Core SignalR
PDF
How SignalR Can Simplify Your Messaging Needs? | Virtuoso Infotech
PPTX
SignalR Dublin ALT.NET
PPTX
Web e device in real time con asp.net Signal R
PPTX
SignalR + Mobile Possibilities
SignalR Powered X-Platform Real-Time Apps!
Real Time Web with SignalR
SignalR powered real-time x-plat mobile apps!
Real-time Communications with SignalR
Real time Communication with Signalr (Android Client)
Real-time web applications using SharePoint, SignalR and Azure Service Bus
Brushing skills on SignalR for ASP.NET developers
Signal R 2015
Real Time Apps with SignalR Core
signalr
ASP.NET MVC 5 and SignalR 2
SignalR
Asynchrone Echtzeitanwendungen fĂŒr SharePoint mit SignalR und knockout.js
SignalR Intro + WPDev
SignalR Intro + WPDev integration @ Codetock
How To Build Real-Time Applications With ASP.NET Core SignalR
How SignalR Can Simplify Your Messaging Needs? | Virtuoso Infotech
SignalR Dublin ALT.NET
Web e device in real time con asp.net Signal R
SignalR + Mobile Possibilities

More from Mindfire Solutions (20)

PDF
Physician Search and Review
PDF
diet management app
PDF
Business Technology Solution
PDF
Remote Health Monitoring
PDF
Influencer Marketing Solution
PPT
PPT
High Availability of Azure Applications
PPTX
IOT Hands On
PPTX
Glimpse of Loops Vs Set
ODP
Oracle Sql Developer-Getting Started
PPT
Adaptive Layout In iOS 8
PPT
Introduction to Auto-layout : iOS/Mac
PPT
LINQPad - utility Tool
PPT
Get started with watch kit development
PPTX
Swift vs Objective-C
ODP
Material Design in Android
ODP
Introduction to OData
PPT
Ext js Part 2- MVC
PPT
ExtJs Basic Part-1
PPT
Spring Security Introduction
Physician Search and Review
diet management app
Business Technology Solution
Remote Health Monitoring
Influencer Marketing Solution
High Availability of Azure Applications
IOT Hands On
Glimpse of Loops Vs Set
Oracle Sql Developer-Getting Started
Adaptive Layout In iOS 8
Introduction to Auto-layout : iOS/Mac
LINQPad - utility Tool
Get started with watch kit development
Swift vs Objective-C
Material Design in Android
Introduction to OData
Ext js Part 2- MVC
ExtJs Basic Part-1
Spring Security Introduction

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
System and Network Administration Chapter 2
PPTX
history of c programming in notes for students .pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Transform Your Business with a Software ERP System
PPTX
CHAPTER 2 - PM Management and IT Context
PPT
Introduction Database Management System for Course Database
Internet Downloader Manager (IDM) Crack 6.42 Build 41
ManageIQ - Sprint 268 Review - Slide Deck
2025 Textile ERP Trends: SAP, Odoo & Oracle
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
How to Migrate SBCGlobal Email to Yahoo Easily
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Odoo POS Development Services by CandidRoot Solutions
VVF-Customer-Presentation2025-Ver1.9.pptx
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Design an Analysis of Algorithms II-SECS-1021-03
Navsoft: AI-Powered Business Solutions & Custom Software Development
Upgrade and Innovation Strategies for SAP ERP Customers
System and Network Administration Chapter 2
history of c programming in notes for students .pptx
How to Choose the Right IT Partner for Your Business in Malaysia
Transform Your Business with a Software ERP System
CHAPTER 2 - PM Management and IT Context
Introduction Database Management System for Course Database

Intro to signalR

  • 1. Introducing ASP.NET SignalR Presenter: Richi Padhi, Mindfire Solutions Date: 7/1/2015
  • 2. Presenter: Richi Padhi, Mindfire Solutions Agenda Introduction How SignalR works? SignalR API & Architecture Demo Security
  • 3. Presenter: Richi Padhi, Mindfire Solutions Introduction
  • 4. Presenter: Richi Padhi, Mindfire Solutions Introduction What is SignalR? ASP.NET SignalR is a library for ASP.NET developers that simplifies the process of adding real-time web functionality to applications. Library to maintain asynchronous (non blocking threads) over persistent connection in ASP.NET applications. What is "real-time web" functionality? Real-time web functionality is the ability to have server code push content to connected clients instantly as it becomes available, rather than having the server wait for a client to request new data. Example : Chat, Email, Stock Ticker, Game Live Score, Real-Time Gaming, Document Collaboration
  • 5. Presenter: Richi Padhi, Mindfire Solutions Introduction >> SignalR provides a simple API for creating server-to-client remote procedure calls (RPC) that call JavaScript functions in client browsers (and other client platforms) from server-side .NET code. >> SignalR also includes API for connection management (for instance, connect and disconnect events), and grouping connections also it handles connection management automatically. >> It can reach out to thousands of clients using Service Bus, SQL Server or Redis. >> Abstracts away the network layer for bidirectional real-time communications, thus helping developers focus on building application.
  • 6. Presenter: Richi Padhi, Mindfire Solutions How SignalR Works?
  • 7. Presenter: Richi Padhi, Mindfire Solutions How SignalR Works? >> SignalR allows bidirectional communication between client & server over persistant connections >> It provides simple APIs for RPC >> SignalR chooses the best fit transport mechanisms for the given client and server environment. >> Manages and gives fine grained control over network layer and also has an auto fallback mechanism.
  • 8. Presenter: Richi Padhi, Mindfire Solutions How SignalR Works?
  • 9. Presenter: Richi Padhi, Mindfire Solutions How SignalR Works? Order of network transports HTML 5 Transports : >> WebSockets >> Server Sent Events Comet Transports (long-held HTTP request) : >> Forever Frame >> Ajax Long Polling
  • 10. Presenter: Richi Padhi, Mindfire Solutions How SignalR Works? WebSockets >> A new HTML5 API that enables bi-directional, full duplex communication between the browser and server. >> It is the new standard defined as a part of HTML 5 to solve two major problems of current web: Overhead of HTTP (Network Throughput) Low Latency >> Standardized
  • 11. Presenter: Richi Padhi, Mindfire Solutions How SignalR Works? Server Sent Event >> A technology where a browser receives automatic updates from a server via HTTP connection. The Server-Sent Events EventSource API is standardized as part of HTML5 >> This was also possible before, but the web page would have to ask if any updates were available. With server-sent events, the updates come automatically. >> Supported in all major browsers, except Internet Explorer.
  • 12. Presenter: Richi Padhi, Mindfire Solutions How SignalR Works? Forever Frame >> Forever Frame creates a hidden IFrame which makes a request to an endpoint on the server that does not complete. The server then continually sends script to the client which is immediately executed, providing a one-way realtime connection from server to client. >> The connection from client to server uses a separate connection from the server to client connection, and like a standard HTML request, a new connection is created for each piece of data that needs to be sent.
  • 13. Presenter: Richi Padhi, Mindfire Solutions How SignalR Works? Ajax Long Polling >> Long polling does not create a persistent connection, but instead polls the server with a request that stays open until the server responds, at which point the connection closes, and a new connection is requested immediately. >> This may introduce some latency while the connection resets.
  • 14. Presenter: Richi Padhi, Mindfire Solutions How SignalR Works? Fallback
  • 15. Presenter: Richi Padhi, Mindfire Solutions SignalR API & Architecture
  • 16. Presenter: Richi Padhi, Mindfire Solutions SignalR API & Architecture The SignalR API contains two models for communicating between clients and servers: Persistent Connections & Hubs Connection A Connection represents a simple endpoint for sending single-recipient, grouped, or broadcast messages. Persistent Connections >> Low level access to communication >> Direct developer access to network pipeline >> Access to lot more communication events >> Will be familiar to developers who have used connection-based APIs such as WCF
  • 17. Presenter: Richi Padhi, Mindfire Solutions SignalR API & Architecture Hubs >> High level abstraction >> Built on top of Persistent Connections >> Least developer work >> Works for majority of user >> Will be familiar to developers who have used remote invocation APIs such as .Net Remoting.
  • 18. Presenter: Richi Padhi, Mindfire Solutions SignalR API & Architecture Architecture
  • 19. Presenter: Richi Padhi, Mindfire Solutions Demo
  • 20. Presenter: Richi Padhi, Mindfire Solutions Demo >> First SignalR application >> SignalR Hub and jQuery Demo
  • 21. Presenter: Richi Padhi, Mindfire Solutions Security
  • 22. Presenter: Richi Padhi, Mindfire Solutions Security
  • 23. Presenter: Richi Padhi, Mindfire Solutions Security
  • 24. Presenter: Richi Padhi, Mindfire Solutions References http://www.asp.net/signalr http://signalr.net/ http://www.pluralsight.com/courses/signalr-across-web-devices https://github.com/SignalR/SignalR/wiki
  • 25. Presenter: Richi Padhi, Mindfire Solutions Question and Answer
  • 26. Presenter: Richi Padhi, Mindfire Solutions Thank you ! :)