Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Latest commit

 

History

History
36 lines (28 loc) · 1.06 KB

readme.md

File metadata and controls

36 lines (28 loc) · 1.06 KB

Serverless mandelbrot "server"

This was created just to toy with AWS lambda and the serverless framework. The main idea was to have a cheap way to scale the mandelbrot calculation to 1000 compute nodes (the current max).

The easiest way to use this server is to run the mandelbrot client at https://github.com/marre/mandelbrot-client-java.

Drawbacks:

  • The "data" is returned as a json array so the result is quite large and takes a while to transfer.
    • Currently no easy way to transfer a binary from a lambda via the serverless framework.
    • Max result size is 6Mb, an alternative is to send the result to S3 and redirect to that file.
  • Scaling problems, I haven't been able to get AWS to scale this to more than one instance yet

How to setup

In brief:

And then run:

✗ npm install
[...]
✗ serverless deploy
[...]