Effect CommunityEC
Effect Community3y ago
7 replies
maxie9723

Struggling with Effect in Creating an HTTP Server with Fastify and Redis Integration

Hi! 👋
I want to use Effect but I have been struggling a lot with getting the concepts right. I'm more of an OOP programmer and I'm very familiar with those concepts. However now I'm trying to create a simple http server with fastify and add one endpoint which takes some json data and saves it to a redis database. And I can't for the life of me understand how I'm supposed to, in the Effect idiomatic way, set this up. 🤦‍♂️

Can someone provide a small example on how to set up an http server which is started by running an effect and then maps a http request to a handler effect? It would be really helpful 🙏
Was this page helpful?