# Building a Functional, Effectful Distributed Compute System from Scratch in Scala 3 (Part 1)

DevFeed: [Building a Functional, Effectful Distributed Compute System from Scratch in Scala 3 (Part 1)](<https://devfeed.tech/articles/building-a-functional-effectful-distributed-system-from-scratch-in-scala-3-just-to-avoid-leetcode-part-1-41500.md>)

Original publisher: [Read original article](<https://chollinger.com/blog/2023/06/building-a-functional-effectful-distributed-system-from-scratch-in-scala-3-just-to-avoid-leetcode-part-1/>)

Author: Christian Hollinger

Published: 2023-06-19T00:00:00Z

Content type: article

Language: en

Sources: [Christian Hollinger](<https://devfeed.tech/sources/christian-hollinger.md>)

Topics: [distributed-systems](<https://devfeed.tech/topics/distributed-systems.md>), [Scala](<https://devfeed.tech/topics/scala.md>), [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [data-processing](<https://devfeed.tech/topics/data-processing.md>), [Platform Engineering](<https://devfeed.tech/topics/platform-engineering.md>), [Parallelism](<https://devfeed.tech/topics/parallelism.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>)

Tags: [bridgefour](<https://devfeed.tech/tags/bridgefour.md>), [cats](<https://devfeed.tech/tags/cats.md>), [cats-effect](<https://devfeed.tech/tags/cats-effect.md>), [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [data-platform-engineering](<https://devfeed.tech/tags/data-platform-engineering.md>), [distributed-system](<https://devfeed.tech/tags/distributed-system.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [functional-programming](<https://devfeed.tech/tags/functional-programming.md>), [high-performance](<https://devfeed.tech/tags/high-performance.md>), [higher-kinded-types](<https://devfeed.tech/tags/higher-kinded-types.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [programming](<https://devfeed.tech/tags/programming.md>), [scala](<https://devfeed.tech/tags/scala.md>), [scala-3](<https://devfeed.tech/tags/scala-3.md>), [tagless-final](<https://devfeed.tech/tags/tagless-final.md>), [zio](<https://devfeed.tech/tags/zio.md>)

## AI overview

The author explains building Bridge Four, a functional, effectful distributed data-processing system from scratch in Scala 3 as an alternative to practicing LeetCode problems. The project focuses on distributed systems and data-platform engineering, with later parts covering consistency, background tasks, job submission, worker scaling, leader election, and Raft consensus.

## Source excerpt

Building something that already exist (but worse) so I don't have to think about Leetcode: Bridge Four, a simple, functional, effectful, single-leader, multi worker, distributed compute system optimized for embarrassingly parallel workloads.