Supported databases

Fluent is currently supporting the following databases:

  • MySQL
  • PostgreSQL
  • Redis
  • SQLite

Vapor does not have a native NoSQL driver. However, a community-provided package uses the MongoKitten driver. In this book, you will be using MySQL, but it is relatively easy to change that to PostgreSQL if you wanted to. NoSQL is an approach good for certain cases; in my experience, it is better to start with a relational database, though. Relation databases force you to plan your structure ahead of time, which pays off in the end when you have a lot of data. On the other hand, NoSQL can lead to data inconsistencies.

Get Hands-On Swift 5 Microservices Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.