Skip to content

Instantly share code, notes, and snippets.

@michalbogacz
michalbogacz / FileZipStream.scala
Last active August 28, 2019 07:08
Creating zip file with Akka Streams.
/*------------------------------------------------------------------------------
* MIT License
*
* Copyright (c) 2019 Michał Bogacz
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@michalbogacz
michalbogacz / MongoS3Backup.scala
Created February 20, 2017 07:37
Backup MongoDB collection to S3 with Akka Streams and Alpakka
/*
Description:
Simple example how to backup MongoDB collection to S3.
It's so easy with Akka Streams and Alpakka :)
Dependencies:
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.4.17"
libraryDependencies += "com.lightbend.akka" %% "akka-stream-alpakka-s3" % "0.6"
libraryDependencies += "org.mongodb" % "mongodb-driver-reactivestreams" % "1.3.0"
*/