Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Redux

You're reading from   Learning Redux Write maintainable, consistent, and easy-to-test web applications

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781786462398
Length 374 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Daniel Bugl Daniel Bugl
Author Profile Icon Daniel Bugl
Daniel Bugl
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Why Redux? 2. Implementing the Elements of Redux FREE CHAPTER 3. Combining Redux with React 4. Combining Redux with Angular 5. Debugging a Redux Application 6. Interfacing with APIs 7. User Authentication 8. Testing 9. Routing 10. Rendering on the Server 11. Solving Generic Problems with Higher-Order Functions 12. Extending the Redux Store via Middleware

Performance improvements

Now that we have server-side rendering with a simple caching method set up, let's check how much the performance of our application has improved.

We will start by taking a look at the old application, without the server-side rendering (chapter10_1.zip):

Network performance of the chapter10_1 application (no server-side rendering)
Note that these tests were done by making a local request. On a live application, it would take much longer to make requests because network latency affects each request that is made.

As you can see, it makes the following requests (in sequence, because they depend on each other):

  1. Request to the main page.
  2. Request for main.js (Redux store initializes).
  3. Request for /posts.
  4. Request for /dan.
  5. Request for /des.

With server-side rendering, we can reduce this to the first two requests and immediately show the page after the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime