Backend

From how the web talks to running a service in production.

3 stages10 topics

Legend

  • RequiredRequiredThe core path, follow it in order
  • Must knowMust knowYou should know it
  • RecommendedRecommendedOur pick: useful and worth your time
  • Worth a lookWorth a lookNot a priority: learn it when you can
  • OptionalOptionalAn alternative: you can skip it
  1. Fundamentals

    • Required

      Pick a language

      Any mainstream language can run a solid backend, and the concepts in this roadmap carry over between them. What changes is how hard it is to start, how fast it runs and the kind of project where it is most used.

      • Python: the simplest syntax to start with. It leads in data, automation and AI, and with Django or FastAPI it runs full APIs. It is the slowest of the three at runtime.
      • JavaScript (Node.js): a bit more demanding than Python because of its asynchronous model (promises, the event loop), but you use one language for frontend and backend. A good fit for APIs, real-time features and full-stack teams.
      • Go: compiled and statically typed, so it asks for more discipline at first, but it is much faster and its built-in concurrency (goroutines) makes services easy to scale. Common in microservices, infrastructure and cloud tooling.

      Python and JavaScript are dynamically typed and run without a separate compile step (TypeScript adds types to JavaScript).

      Alternatives

      • Java and C#: everywhere in large companies, banking and enterprise systems, with mature ecosystems and plenty of jobs.
      • Rust: top performance and memory safety, in exchange for the steepest learning curve.

      Pick one, build several projects with it and come back to continue with the next stage.

      Pick one path

  2. Databases

    • Required
      • PostgreSQLRecommended
      • MySQLOptional
      • SQL ServerOptional
      • SQLiteOptional

      Relational (SQL)

      Relational databases store data in tables with a defined schema and are queried with SQL. They offer ACID transactions: several operations succeed or fail together. They are the default choice for almost any backend.

      Which one to pick

      • PostgreSQL: our recommendation. Very complete (JSON, text search, extensions such as PostGIS) and strict about data integrity.
      • MySQL: widespread in hosting and in stacks such as WordPress or Laravel; simple to operate.
      • SQL Server: common in companies built on .NET and the Microsoft ecosystem.
      • SQLite: a database in a single file, with no server. Ideal for small apps, tests, and mobile or desktop applications.

      SQL itself is almost the same in all of them: what you learn in one carries over to the rest.

      Pick one path

      • PostgreSQLRecommendedSoon
      • MySQLOptionalSoon
      • SQL ServerOptionalSoon
      • SQLiteOptionalSoon
    • Must know
      • RedisRecommended
      • MongoDBRecommended
      • CassandraOptional
      • DynamoDBOptional

      NoSQL

      NoSQL groups the databases that do not use the relational table model. Each family solves a specific problem, so they do not replace SQL: they complement it.

      Families and examples

      • In-memory key-value (Redis): reads and writes in microseconds. Used as a cache, for sessions, queues and rate limits.
      • Documents (MongoDB): stores JSON-like objects with a flexible schema. Useful when the shape of the data changes often.
      • Wide-column (Cassandra): massive writes spread across many servers, such as metrics or events.
      • Managed in the cloud (DynamoDB): key-value and documents at large scale without running servers, in exchange for tying you to AWS.

      Start with Redis: almost every backend ends up needing a cache.

      Pick one path

      • RedisRecommendedSoon
      • MongoDBRecommendedSoon
      • CassandraOptionalSoon
      • DynamoDBOptionalSoon
  3. Production

    • RequiredIdempotencySoon
    • RequiredContainersSoon
    • Must knowObservabilitySoon