arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Polylith

Polylith is a software architecture that applies functional thinking at the system scale. It helps us build simple, maintainable, testable, and scalable systems.

hashtag
Introduction

Working with Polylith is like having a box with LEGO® bricks:

From here we put together sets of bricks, that are built into services and tools:

We work with all the code from one place, and get all the benefits we have from a monolith:

This gives us a joyful development experience and a high degree of flexibility in how to run the code in production.

If you want to quickly see if Polylith is for you, please jump to the page. Another good start could be to or continue reading here!

hashtag
Sponsoring

Please support the work with Polylith and the poly tool !

hashtag
Iron Sponsors

hashtag
Learn Polylith

There are several ways of learning Polylith:

hashtag
Try it out yourself

If you are a Clojure and/or ClojureScript developer, head over to the documentation.

If you are a Python developer, please visit the documentation.

If you prefer some other language, you can still structure your code as a Polylith and get benefits like decoupled , a single environment, and a flexible deployment situation.

hashtag
How it's used in production

Watch when explains how he uses Polylith at World Singles Network:

hashtag
Look at working code

Go and have a look at these systems:

  • The in Clojure, written by Furkan Bayraktar

  • The in Clojure, written by Sean Corfield

  • The in Clojure, written by Joakim Tengstrand

hashtag
Watch other videos

Get a high-level introduction to Polylith with these three videos:

hashtag
Listen to a podcast

Jacek Schae interviews the Polylith team in the :

  • - Polylith with Joakim, James and Furkan (Part 1)

  • - Polylith with Joakim, James and Furkan (Part 2)

hashtag
Slack

Come and chat with us and other Polylith users in .

hashtag
Read a blog post

  • - by Felix Barbalet

  • - by Joakim Tengstrand

  • - Sean Corfield writes about his Polylith journey

hashtag
Production systems

Enter and have a look at different .

hashtag
Read the documentation

If you prefer reading documentation, then you’re already in exactly the right place!

Note that Polylith documentation is split into two parts:

  1. This high-level documentation, which describes how Polylith works and the problems it solves. It tries to remain language agnostic, but does use Clojure in the code examples.

  2. The documentation, which describes how to work with a Polylith codebase in Clojure and ClojureScript. There is a reworked version of the doc in Japanese .

Content:

  • Polylith - what is Polylith?

  • Sharing code - how Polylith addresses the sharing problem

  • Testing incrementally - how a Polylith system can be tested incrementally

hashtag
What is Polylith?

Polylith is a software architecture that solves some of the fundamental challenges in building backend systems. Those challenges are:

  • It's difficult to share our code across teams and services

  • We lack a shared language for communicating architectural concepts

  • As our codebases grow, they tend to become a complex mess that is hard to change and test

Polylith addresses these challenges by introducing simple, composable, LEGO-like bricks, which can easily be shared across teams and services. The choice of bricks determines what each artifact does and how it's exposed.

To make the development experience even more delightful, we've also built a which gives instant creation of the various building blocks, incremental tests (only test the code that's impacted by the last changes), and project visualization.

hashtag
What isn't Polylith?

  • Polylith isn't a framework and does not come with ready to use functionality.

  • Polylith isn't a library.

  • Polylith isn't a tool (but has tooling support for Clojure and Python).

hashtag
What programming languages are Polylith for?

Polylith is language agnostic, and it should be possible to use it in almost any programming language. We in the Polylith team have only used it with the functional language so far, but there is nothing stopping someone from using it in a procedural language like , or an object oriented language like (remember that we have for already). Even without tooling support, you will get most of the benefits.

A in Clojure, written by Joakim Tengstrand

- David Vujic introduces Polylith in Python

  • - by Joakim Tengstrand

  • - The foundational concepts that Polylith is built upon, by Joakim Tengstrand

  • Polylith in a nutshell - a walkthrough of the building blocks of Polylith.
  • Workspace - were we put everything.

  • Component - our composable building block (brick).

  • Base - building block (brick) that exposes a public API

  • Project - deployable artifact made of a set of bricks

  • Development project - the place where we work with all our bricks

  • Bring it all together - a short example

  • Simplicity - how Polylith simplifies the design

  • poly tool - overview of the poly tool

  • Current architectures - a walk through of common architectures

  • Advantages of Polylith - how Polylith differ from other architectures

  • Transitioning to Polylith - step by step guide on how to transition to Polylith

  • Production systems - list of companies using Polylith in production

  • Why the name "Polylith"?

  • Videos

  • FAQ - Frequently Asked Questions

  • Who made this?

  • We try to mimic our complex production environments in our development environment

  • Our systems take too long to test, build, and deploy

  • Sharing code
    read a blog post
    herearrow-up-right
    arrow-up-right
    poly toolarrow-up-right
    python toolarrow-up-right
    workspace
    components
    development
    Sean Corfieldarrow-up-right
    RealWorld example apparrow-up-right
    User Manager example apparrow-up-right
    Polylith projectarrow-up-right
    ClojureScript podcastarrow-up-right
    S4 E21arrow-up-right
    S4 E22arrow-up-right
    Slackarrow-up-right
    Leveraging Polylith to improve consistency, reduce complexity and increase changeabilityarrow-up-right
    Understanding Polylith through the lens of Hexagonal architecturearrow-up-right
    The Monorepo/Polylith Seriesarrow-up-right
    the Matrixarrow-up-right
    production systemsarrow-up-right
    poly toolarrow-up-right
    herearrow-up-right
    toolarrow-up-right
    Clojurearrow-up-right
    Carrow-up-right
    Javaarrow-up-right
    tooling supportarrow-up-right
    Pythonarrow-up-right
    Game of life apparrow-up-right
    A fresh take on monorepos in Pythonarrow-up-right
    How Polylith came to lifearrow-up-right
    The origin of complexityarrow-up-right
    A 25-minute presentation showcasing how Polylith is used at Greenlabs (with English subtitles) by Jungin Kwon
    A 39-minute overview of the Polylith architecture, by Joakim Tengstrand and Furkan Bayraktar
    10-minute overview, by James Trunk