A well-written test suite is a big part of any successful application. But let's say you rely on an external dependency for some parts of your app (for example, an external API for fetching user information). It then becomes important to mock that dependency in the test suite to prevent external API calls during testing or to test specific behavior.
ReadWeb applications usually rely heavily on databases, for the most part. And as applications grow, databases grow too. We keep scaling web servers and background workers to keep up with the heavy load. But eventually, the database needs to keep up with all the new connections from these processes.
ReadA state machine can hold all possible states of something and the allowed transitions between these states. For example, the state machine for a door would have only two states (open and closed) and only two transitions (opening and closing).
ReadElixir is all about performance. Say you have an app up and running with Elixir, but some parts aren't working as fast as you would like them to.
ReadThis post looks at the new pattern matching support for Ruby 2.7+ and how we can use it to make our code more readable.
ReadRails 7 was released on December 15. Basecamp, HEY, Github, and Shopify have all been running the Rails 7 alpha in production, so we can expect the release to be pretty stable. In this post, we will look at some of the biggest new features and changes that Rails 7 brings.
ReadIn this post we will discuss about a very high level overview of implementing a long running connection between two services with the use of WebSocket and then writing unit tests for the functionality.
ReadMonitor all emails being sent by your app and retry based on WebHook notifications about failures.
ReadCreating a pool of processes cannot get easier in Elixir.
ReadDeploy custom SSL certificate to Heroku for Next.JS apps and auto redirect to https.
ReadServe different stylesheets to different parts of your Next.js apps
ReadHandle authentication right from your GraphQL API using login and logout mutations.
Read