Scala FS2 and HTTP4S

Total time

Scala FS2 and HTTP4S

EDC4IT-UK
Logo EDC4IT-UK
Provider rating: starstarstarstarstar_half 9 EDC4IT-UK has an average rating of 9 (out of 1 reviews)

Tip: need more info about the programme, starting date or price? Request information for free!

Starting dates and places
There are no known starting dates for this product.

Description

Course Overview

A solid understanding of fs2 and http4s is essential for a more comprehensive grasp of Scala. If you are looking for an efficient and speedy polymorphic stream processing library, then FS2, or Functional Streams for Scala, is for you. It is compatible with Cats-effect typeclasses and can be used with other effect libraries. Built on FS2, HTTP4S is the ideal companion topic for this course and is the minimal Scala interface for your HTTP services.

Course Prerequisites

Students should be familiar with the Scala programming language (preferably version 3), cats and cats-effect (preferably version 3). We advise students to follow our SCALA-CATS course.

Outline

fs2

  • Introdu…

Read the complete description

Frequently asked questions

There are no frequently asked questions yet. If you have any more questions or need help, contact our customer service.

Didn't find what you were looking for? See also: VMware, M&A (Mergers & Acquisitions), CompTIA A+ / Network+ / Security+, Linux, and Virtualisation.

Course Overview

A solid understanding of fs2 and http4s is essential for a more comprehensive grasp of Scala. If you are looking for an efficient and speedy polymorphic stream processing library, then FS2, or Functional Streams for Scala, is for you. It is compatible with Cats-effect typeclasses and can be used with other effect libraries. Built on FS2, HTTP4S is the ideal companion topic for this course and is the minimal Scala interface for your HTTP services.

Course Prerequisites

Students should be familiar with the Scala programming language (preferably version 3), cats and cats-effect (preferably version 3). We advise students to follow our SCALA-CATS course.

Outline

fs2

  • Introduction to fs2
  • Compare fs2 to other streaming libraries
  • Defining pure streams
  • using core operations (mapflatMaptake, …)
  • Combining Streams
  • Define effectful streams
  • Understand stream compilation to F[_]
  • List key fs2 API (Stream, Pipe, Chunk, Pull, …)
  • Transforming values using pipes
  • Handling errors
  • Building Retry logic
  • Building declarative flows
  • Handling and releasing Resources
  • Introduction to Concurrency

http4s

  • Introduce https as a functional HTTP client/server
  • Introduce its Architecture
  • Understand the relevance of KleisliMonoidK and other typeclasses
  • Understand the role of fs2
  • Introduce Blaze

The Server and APIs/DSL

  • Configure the BlazeServer
  • Introduce the server DSL
  • Build polymorphic http4s code
  • Understand make aResponse (body, headers)
  • How map HTTP Requests
  • Extract Path Parameters
  • Use Query Parameters
  • Introduce Entity Handing and codecs
  • Understand how EntityDecoder/EntityEncoder works
  • Using built-in codecs (strings, fs2 Stream, …)
  • Introduce/Recap Circe for Json handling
  • Integrate http4s and circe
  • Accessing the request body (for POST)
  • Adding request Validation using cats
  • Introduce and use Middleware
  • Define your own Middleware
  • Apply Middleware to your routes (logging, Authentication, CORS, etc)
  • Testing http4s routes

The Client API/DSL

  • Set up a Blaze client
  • Introduce the client API
  • Making requests use the Client DSL
  • Handling the responses
  • Working with Headers
  • Discuss client middleware (retryfollow-redirects,.. )

You have discovered EDC4IT, your online home for IT Training in Open Source Technologies.

Famous for the practicality and applicability, a significant part of our course material is dedicated to hands-on exercises and lucrative tips allowing the participants to improve considerably in their workplaces in no time.

We go the extra mile to deliver consultancy and on-the-job coaching, as needed. Having received great feedback on our online courses, we take pride in our trainers and learning material.

Join us, use our rich expertise, and get ahead of the rest!

Stay up-to-date on new reviews
There are no reviews yet.
Share your review
Do you have experience with this course? Submit your review and help other people make the right choice. As a thank you for your effort we will donate £1.- to Stichting Edukans.

There are no frequently asked questions yet. If you have any more questions or need help, contact our customer service.

Where should we send the information?

(optional)
(optional)
(optional)
(optional)
(optional)
We store your personal details, and share them with EDC4IT-UK, in order to help you along via email and potentially via phone. You can find more info in our privacy policy.