The React Show

A podcast focused on React, programming in general, and the intersection of programming and the rest of the world. Come join us on this journey.

Listen

[33] Where and How to Store Data from Your React Application

As React Developers, we’ve definitely got the front-end under control, but what about the back-end? One of the core components of a successful application is your Database. What is a Database? How do you...


As React Developers, we’ve definitely got the front-end under control, but what about the back-end? One of the core components of a successful application is your Database. What is a Database? How do you choose the right one? Where do you host it? We’ll answer all your questions and share some experiences on Where and How to Store Data from your React Application

Show Notes

  • Intro
    • New Year’s Chat
  • Data is fundamental to solving every programming problem
    • First thing I do, whether it is writing an app or designing an algorithm or creating a library is look at the data
    • What is the structure and how I will interact with it
  • From Hard Coded Values to Your First Database
    • Paralysis by Analysis due to lack of knowing options
    • Starting with something that you don’t know well and it takes up all your time
    • Making the wrong choice and sticking with it even though it causes more problems
    • Making wrong assumptions on how you write your front-end, and it doesn’t sync up well with the way you are receiving data
  • Making the Right Choice
    • What is the structure of the data?
    • Who is the data for?
    • How is the data accessed?
    • How to choose the right type of data storage?
      • Types of Data Storage
        • Relational Databases
          • Great for CRUD
          • Typically the best to start with
          • Simple data models
          • Need to know SQL
          • Good enough to use for most things
        • Key Value Stores
          • Fast access + updates to self contained datasets?
          • Document Stores
          • Good for specialized cases
        • Graph Database
          • What is a graph?
            • Network of Vertices and Edges
            • Common Algos
              • Shortest path between two verticies
          • Allows relations via whole networks
          • Find the path between two nodes
    • Maintenance resources?
      • Choosing libraries
        • SQL Lite
          • File Based Relational Storage
          • option for when Code changes every few years
        • Running your own Database Server
          • Check if it’s running
          • User Accounts
          • App logins, connection maintenance
          • option for when Code changes frequently?
      • How often does the code-base change?
    • Where to Host Your Database
      • Self Hosted
        • Privacy
        • More “maintenance” but not really if you do it right.
      • Databases As a Service
        • No Guaranteed Privacy
        • Extra costs associated
        • Heroku
        • Sanity
    • Wrap Up
      • Starting with Something you know
        • Migrate when you need
      • What to look for when researching new option

Support the show