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. 

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?

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

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

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

Asynchronous Programming

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

Concurrent Programming

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

Queuing

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

Retrying

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

Streaming

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

Parallelism

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

Scheduling

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

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

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

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

13.11.2020 / By Anna Berkolec

How to achieve your goals by creating good habits instead of setting milestones

Did you know that about 40% of what we do every day we do automatically? Almost half of our life is taken up by habits that we've formed over our lifetime. People are simple creatures, and if something works, why not stick with it?

28.10.2020 / By Maciej Greń

Tubi x Scala: Why it works?

If you want to succeed in a World of ever-changing technology, you always need to be a step ahead of your competitors. Constantly pushing the boundaries is crucial if your business is to provide a flawless customer experience, and grow. Today, we’re going to show you the perfect example of a company that wasn’t scared of scaling up machine experimentation with Scala. And let us just take a sneak peek at that in one sentence: “I love working with Scala” | Alexandros Bantis, backend Scala Developer at Tubi The outcome is rather impressive, so read on to find out more about it!

01.10.2020 / By Daria Karasek

Do Scala with Scalac – 7 success stories to follow

From challenges to achieving goals - building a complex solution takes time and effort in order to seize all opportunities and deliver a high-quality product. Thinking about all the aspects you have to handle when developing software or making changes to existing ones can be a little overwhelming. Especially when a solution that used to work doesn’t fit your needs anymore and bottlenecks give you sleepless nights. Picking the right partner to help you manage this is a hard nut to crack. Maybe it’s high time to ask other companies about their own experience and recommendations?

Let’s talk about your project

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

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

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

    Close modal

    Your message has been sent!

    We'll get back to you soon!