Slide 1

Slide 1 text

React + ASP.NET Core = James Singleton unop.uk @shutdownscanner

Slide 2

Slide 2 text

What is ASP.NET Core? And why should I care?

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Features • Cross-platform • Windows • Mac • Linux • Command line friendly • Your choice of editor / IDE • Visual Studio • VS Mac • VS Code • Rider • Open source • Community contributions • Performance • Benchmarks • Compiled yet portable • Static type checking • Easy package and publish • Containers • Self-contained • Native compilation coming

Slide 8

Slide 8 text

React + ASP.NET Core

Slide 9

Slide 9 text

Why server-side over static? • Pre-render HTML • Latest content before JS loads • Not static HTML from build • Also good for SEO • Not for “installed” offline PWAs • Service Workers / AppCache • Cache output for set time • Controller attribute • API backend • Data storage • Authentication • Proxy API • If not CORS enabled • Trim down payload to reduce latency • Serialization format change • E.g. XML → JSON • Static IP authentication restrictions • Token / credential protection • Easier testing (and demos ) • Abstraction and decoupling • Redundancy and backup • Historical trend logging • Caching (LAN) • SOAP 

Slide 10

Slide 10 text

Spot the difference @ShitSignage

Slide 11

Slide 11 text

Fail @ShitSignage

Slide 12

Slide 12 text

Popups @ShitSignage

Slide 13

Slide 13 text

A problem has been detected… @ShitSignage

Slide 14

Slide 14 text

Slow news day @ShitSignage

Slide 15

Slide 15 text

In the beginning (before APIs)

Slide 16

Slide 16 text

Port to react

Slide 17

Slide 17 text

Static reactube.com

Slide 18

Slide 18 text

Demo

Slide 19

Slide 19 text

Huxley – Live Departure Board JSON proxy

Slide 20

Slide 20 text

InstaBail.uk

Slide 21

Slide 21 text

Book • ASP.NET Core 2 High Performance • What’s new in .NET Core 2 and C# • Getting started (all the platforms) • Universal tips for quick apps • Data Structures • Parallelisation • Image Formats • Compression • Architecture • Networking • Cloud Hosting • JS Service Workers • unop.uk/book

Slide 22

Slide 22 text

Thanks Questions? James Singleton unop.uk @shutdownscanner