ZIO - the future of Functional Programming.

Type-safe, composable, asynchronous, concurrent programming for Scala projects.

Read more

What is ZIO

ZIO is a purely functional, type-safe, composable library for asynchronous, concurrent programming in Scala.

ZIO is ideal for mid to large-scale projects that require a lot of concurrency and speed. 

blank

When to use ZIO

ZIO is a zero-dependency Scala library, part of Scala, one of the most popular functional programming language.

ZIO was developed to solve complex, modern business problems using simple, testable, and composable code. Powered by highly-scalable, non-blocking fibers that never waste or leak resources ZIO supports you in developing highly scalable, resilient, and reactive applications.

"

It gives the ability to break down the problem to smaller problems, and then solve them individually. The beauty comes when you start composing those solutions into a new solution. The composition and abstraction gives you the ability to reuse code across your codebase and team members. That’s when you get efficiency and speed. It results in building higher quality software. It’s not only you are building quicker, you build high quality software as well.

"
ZUKA KAKABADZE, FUGO.AI

Why is ZIO so good for business?

blank

High-performing

Scalable applications with 100-times better performance than Scala’s Futures

Type-safe

The full power of the Scala compiler can
catch bugs at compile time

Asynchronous

Sequential code that looks the same
whether asynchronous or synchronous

blank

Concurrent

Concurrent apps without deadlocks, race
conditions, or complexity

Resource-safe

Apps that never leak resources
(including threads!), even when they fail

Functional

Simple building blocks that provide rapid
solutions to complex problems

blank

Responsive

Great responsiveness. Run more resilient applications that can respond to failures in a flexible way.

Less bugs

Less bugs - less money lost because of your system going out of service

Resilient

Apps that respond to failures locally and flexibly and never lose errors

How ZIO solves complex problems - easily

blank

Asynchronous Programming

Asynchronous code - as easy as synchronous code and able to handle every error, never leaking resources.

blank

Concurrent Programming

Concurrent code that scales easily, without locks or deadlocks, with maximal laziness and resource safety.

blank

Queuing

Powerful asynchronous queues that build work processing flows and ration scarce resources.

blank

Retrying

Robust retry strategies,making
Powerful asynchronous queues that build work processing flows and ration scarce resources.

blank

Streaming

Efficient, lazy, concurrent streams that can handle huge or infinite amounts of
data in constant heap space.

blank

Parallelism

Trivial partitions with multiple parallel fibers, making short work of CPU-intensive processing.

blank

Scheduling

Flexible, composable schedules for repeating work, such as report generation or email notifications.

blank

Testing

Built-in, powerful combinators, property based testing and seamless mocking capabilities for easy testing of effectual programs.

Benefits of ZIO

for someone who's writing in Scala

01

Purely-functional design

One of Scala’s main benefits is its combination of function-oriented and object-oriented programming paradigms.

02

Easy to start working with

Scala syntax isn’t as strict as some other languages, which is beneficial in regards to both development and testing. The syntax is also much more concise compared to Java, which can mean long-term efficiency gains for businesses.

03

Catch bugs at compile time

Scala can be used to build a wide variety of programs, including apps, games, software-as-as-service, databases, and more. Developers have access to an array of advanced features that leverages the JVM.

04

Write unit tests easier

Scala is compatible with Java (it is compiled into Java Byte Code), which means that developers can fully leverage their Java libraries and the Java SDK. It provides many features that are lacking in Java, such as lazy evaluation and currying.

05

Build highly concurrent applications

Scala is a relatively easy language to learn. Comprehensive documentation and a large community of users make it an excellent new option for developers. This is important for businesses when evaluating costs. It’s also worth remembering that this ease-of-use isn’t provided at the expense of functionality. Scala has a very “mature” backend.

06

Refactoring that you can… like

Because Scala provides much of the same functionality as Java, but with fewer lines of code, it’s generally easier to create and troubleshoot programs. It’s also possible to write programs very quickly in Scala. Even when compared to languages like Python, the comparatively low effort required to maintain and test Scala programs almost always makes it the better choice.

Benefits for Developers

blank

ZIO allows to build highly concurrent applications, using Fibers and things such as ZIO STM.

In a very easier way than using traditional approaches from object oriented programming. You don’t need to think about low-level constructs such as Locks, and hence you don’t need to worry about problems like deadlocks or race conditions, which are problems that are very difficult to diagnose and resolve and they generally happen in production environments.

Testability - regained

John A De Goes pioneered a new approach - working alongside ZIO contributors from Scalac. Now we can now easily test functional effects, and compare two effects for equality. The ZIO environment allows us to regain testability, but without any additional ramp-up time (beyond the ramp-up required for functional effects). All in all, it now feels Scala has its own solution for testing functional effects.

Approach - friendly

ZIO's other main strength is its friendliness toward beginning functional programmers. Unlike tagless-final, its approach is fully inferable, modular, and can be used incrementally, exactly when and where it's needed to be.

Our contributions to the ZIO community

blank

Mastering modularity in ZIO with ZLayer

Refactoring ZIO code is a delight, you don’t have to worry about changing the behaviour of your program while you do it

Read more

In this video, you will find out why the principles of Scala should be applied everywhere.

Mat Gren, Head of Business at Scalac, and Zuka Kakabadze, CTO at Fugo talk about the business benefits of using functional programming and most importantly ZIO – Type-safe, composable asynchronous and concurrent programming for Scala.

Fugo is a #startup that chose functional programming and ZIO to scale its #MVP. See what were the business reasons behind this decision. Also, find out why it’s https://www.youtube.com/a really great approach to think longterm. To think about Scalability from day one and build your scalable MVP in Scala.

Latest Blogposts

08.04.2021 / By Daria Karasek

How Outsourcing Can Solve Technical Debt

Technical debt has become widely prevalent nowadays. Since technology is constantly evolving, many businesses have to choose between acquiring new solutions or sticking with tried-and-tested ones. No right answer can be given to this hard choice. But even though debt sounds threatening for many, it doesn't always have to be.

30.03.2021 / By Marcin Krykowski

Top 15 Scala Libraries for Data Science in 2021

Python and R seem to be the first choice when it comes to data engineering. However, if we look a bit deeper, Scala is gaining more and more popularity. This is because, thanks to its functional nature, it is a more common choice when it comes to building powerful applications that need to cooperate with a vast amount of data.

23.03.2021 / By Tomasz Bogus

How To Tackle Technical Debt Quadrants?

You come across the term technical debt, read a little about this matter, know everything in theory, and you’re still not sure how to correctly identify whether some kind of design flaws are actually technical debt or not.  We have a solution that can help you with this issue – Technical Debt Quadrants. This method […]

Let’s talk about your project

    blank

    We will reach out to you in less than 48 hours
    to talk about your needs.

    blank

    We will perform a free tech consultation
    to see which stack fits your project best.

    blank

    We will prepare the project estimate in 3 days
    including the scope, timelines, and costs.

    Close modal
    blank

    Your message has been sent!

    We'll get back to you soon!