How best upload an image in Lagom / Play?

Hello guys,

I have a use case where the client needs to upload the image (driver license and etc) to Lagom service. Each image should be less than 8 MB in size. How would this be handled with Lagom?

As well, do you think you’d save the images in the Cassandra storage or into the file-centric storage systems like S3? What’re the best practices here?



In this case is the client interacting with the Lagom service directly or is there a front-end web app?

It’s usually best to handle the image upload in the Play application and then write it to a file or binary object store such as S3, then pass a reference to its location to your Lagom service.