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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.