-
Error Handling in a GraphQL API built with Scala and Sangria
If execution of a GraphQL query in your Scala application goes wrong for whatever reasons, Sangria will respond to the client with the message Internal server error, which is hardly helpful. Default error handling in Scala applications powered…
-
How to Create a GraphQL API with Scala and Sangria
If you’re thinking about trying out GraphQL in your Scala application in a bid to optimize the network throughput, thenyou picked out the right time. The technology has matured a lot since 2012, and we can use…
-
Best Practices of Safe Pattern Matching in a Scala Application
When you start developing your first Scala projects, you may sometimes miss out to address one common problem with pattern matching, and that is error handling. Basically, you may pass a type to a method used for matching…
-
How to Use HTTPS with Play Framework
If you want to use HTTPS with your Scala application based on Play Framework 2.3 (or lower), then it’s not possible to just enable this secure protocol in the configuration file, which you can do with the more recent…
-
Tracking Email Status with Amazon SES and SNS in a Scala Application
How do you configure Amazon Simple Email Service (SES) to not only send emails, but also to receive email statuses such as sent, delivered, or read? Amazon SES can only receive the status of emails it delivered, but it can’t…
-
Pagination with Scala and Slick: How to Properly Build Select Queries
Implementing pagination inImplementing pagination in Scala projects using Slick is a very common task, but it’s not always clear how you can use Slick efficiently. It’s obvious that requesting all records from a schema in one go is a…
-
Storing polymorphic objects with ReactiveMongo and Play
ReactiveMongo is an extremely convenient toolkit for working with MongoDB in Scala applications. But, at the same time, its documentation does not cover some of the typical scenarios, so sometimes it takes time to find the right solution.…
-
Manage session creation timestamp in Lift
Lift framework lacks the ability to fetch a session creation timestamp by default. This post will provide a short example of how one can do this while working with Lift. Note: This example uses org.joda.time.DateTime class for working with date.…
-
Implementing file download functionality in Lift
This post describes two approaches to implementing file download in Lift framework. Firstly, we will have a look at the implementation that uses ResponseShortcutException described in the Lift Cookbook. Then, I’ll show how to solve the same task…
-
How to set request throttling on a dispatch HTTP client
Let’s consider the ability to limit the number of HTTP requests being handled by an application simultaneously. For example, the throttling of HTTP requests being sent by the application could be enabled, among other, by the following…
-
How to build a simple MongoDB DAO in Scala using SalatDAO
Usually a data access object for MongoDB consists of common routine CRUD methods. Those methods should be implemented, tested, maintained just like any other code. In this post, I’m going to show you how to use SalatDAO to vastly…
-
RESTful service load testing using Gatling 2
In this post, I am going to show how to create load tests for a REST API application with the help of Gatling 2. This will be a step-by-step guide — starting from integrating Gatling 2 using SBT…
Boost your business with custom software
Tell us about your business needs and we’ll suggest a solution
Thank you!
We have received your request and will get back to you within 1 business day.











