[erlang-questions] Erlang Inside

Krzysztof Jurewicz krzysztof.jurewicz@REDACTED
Thu Dec 14 13:57:58 CET 2017

Paspagon ( http://paspagon.com ) is a cryptocurrency payment processor, written in Erlang, which allows selling any files stored in Amazon S3 (currently only one region). No registration is needed and there are three options for restricting customers:

• custom authorization passed via URL;
• country restriction (via IP geolocation);
• no restrictions.

The latter two allow selling files without running an own server. There is also a Jekyll plugin ( https://github.com/KrzysiekJ/jekyll-paspagon ) which allows selling blog posts in various formats.

To my knowledge, Paspagon is one of the first services using HTTP status code 402 Payment Required (though in a non-standarized way).

Some of the applications/modules:

• cryptocurrency node to monitor transactions in real time;
• currency rates’ fetcher and calculator;
• client for JSON API of Bitcoin-like cryptocurrencies;
• INI parser.

Some of the dependencies:

• cowboy;
• egeoip;
• erlcloud;
• erlydtl;
• erlsha2;
• epgsql;
• gproc;
• jiffy;
• lager.

Due to low volume and low popularity there are few servers used, but the architecture has been designed to be massively scalable and resistant to failures. As a trivial example, Mnesia acts as a operational database (while SQL is used for storing history).

I may be treated as a contact person, with email @myto.com.pl.
chairman of the board of Myto sp. z o.o.
Modrzewiowa 23, 64-930 Dolaszewo, Poland; NIP: 7642670757; seed capital: 5000 zł
KRS: 0000586316 (Sąd Rejonowy Poznań-Nowe Miasto i Wilda Wydział Ⅸ Gospodarczy)
Myto sp. z o.o. is a general partner of Myto sp. z o.o. sp.k.

More information about the erlang-questions mailing list