article thumbnail

Scala as a Junior Developer

Rock the JVM

Lucas’ story is shared by lots of beginner Scala developers, which is why I wanted to post it here on the blog. I’ve watched thousands of developers learn Scala from scratch, and, like Lucas, they love it! If you want to learn Scala well and fast, take a look at my Scala Essentials course at Rock the JVM. sum > 8 ).

Scala 142
article thumbnail

WebSockets in Scala, Part 2: Integrating Redis and PostgreSQL

Rock the JVM

In this iteration, we’ll be integrating Redis to keep track of the users and rooms and we’ll also be persisting messages in Postgres so that new users can have access to previous conversations. Next, we’ll create a user.scala file in the following path, src/main/scala/rockthejvm/websockets/domain. cond ( ( value. cond ( ( value.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Reliable, Fast Access to On-Chain Data Insights

Confluent

Access to the data lake and raw data streams is self-provisioned which allows us to work in parallel, and to scale to support multiple protocols (e.g., Accessing on-chain data requires setting up nodes, which turns out to be not as easy as we thought, due to overcoming different quirks we encountered or data discrepancies between versions.

article thumbnail

Securely Scaling Big Data Access Controls At Pinterest

Pinterest Engineering

Each dataset needs to be securely stored with minimal access granted to ensure they are used appropriately and can easily be located and disposed of when necessary. Consequently, access control mechanisms also need to scale constantly to handle the ever-increasing diversification.

article thumbnail

Two-Factor Authentication in Scala with Http4s

Rock the JVM

If you want to master the Typelevel Scala libraries (including Http4s) with real-life practice, check out the Typelevel Rite of Passage course, a full-stack project-based course. One Time Password (OTP) A One Time Password is a form of authentication that is used to grant access to a single login session or transaction. SHA256 ) }).

Scala 92
article thumbnail

A guide to UDP in Scala with FS2

Rock the JVM

Setting Up Let’s create a new Scala 3 project and add the following to your build.sbt file. The UDP Server Create Fs2Udp.scala in the following path, src/main/scala/com/rockthejvm/fs2Udp/Fs2Udp.scala and add the following code: package com.rockthejvm.fs2Udp import cats.effect. val scala3Version = "3.3.1" lazy val root = project.

Scala 90
article thumbnail

gRPC in Scala with Fs2 and Scalapb

Rock the JVM

Scala is not officially supported at the moment however the ScalaPB library provides a good wrapper around the official gRPC Java implementation, it provides an easy API that enables translation of Protocol Buffers to Scala case classes with support for Scala3, Scala.js, and Java Interoperability. Setting Up. in ( file ( "protobuf" )).

Scala 64