Skip to content

Instantly share code, notes, and snippets.

Sascha-Oliver Prolic prolic

Block or report user

Report or block prolic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
prolic / gist:22ddcace2364be40e569cccecb0fe142
Last active Oct 7, 2017
event store benchmark results
View gist:22ddcace2364be40e569cccecb0fe142
mysql: set up event store tables on database event_store_tests
mariadb: set up event store tables on database event_store_tests
postgres: set up event store tables on database event_store_tests
arangodb: set up event store tables on database _system
test 1 create 10 streams with 100 events in each stream, using 1 event per commit
test 1 using mysql took 9.0940508842468 seconds
test 1 using mysql writes 109.9619974342 events per second
prolic / benchmark.php
Created Jul 13, 2017
functional programming benchmarks in PHP
View benchmark.php
namespace f;
use ReflectionFunction;
const curry = 'f\curry';
function curry(callable $f, ...$args)
View gist:026caaad55e9f990cd4b2d5000e2735e
* This file is part of the prooph/event-store-http-api.
* (c) 2016-2016 prooph software GmbH <>
* (c) 2016-2016 Sascha-Oliver Prolic <>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
prolic / l
Created Mar 9, 2016
amqp seg fault
View l
git clone
cd HumusAmqp
composer install
php ./vendor/bin/phpunit --coverage-html=html
// output
PHPUnit 5.2.10 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.3 with Xdebug 2.4.0
prolic / confirm_test.php
Created Mar 7, 2016
Rabbitmq publisher confirm test
View confirm_test.php
$connection1 = new \AMQPConnection();
$connection2 = new \AMQPConnection();
$channel1 = new \AMQPChannel($connection1);
View benchmark_batch_publishing.php
require 'vendor/autoload.php';
$amqpLibConnection = new \PhpAmqpLib\Connection\AMQPStreamConnection(
prolic / gist:a320d43ee1ca709384fb
Last active Feb 25, 2016
inheritance aggregate root with prooph
View gist:a320d43ee1ca709384fb
A minor patch to the aggregate repository is needed for this! see:
abstract class User extends \Prooph\EventSourcing\AggregateRoot
protected $type;
public function type()
View gist:8c432eb84fa4e3a47968
Verifying that +prolic is my blockchain ID.
prolic / gist:65fc0bfd3792999ecd8b
Last active May 25, 2018
namespace organisation for ddd in bounded contexts
View gist:65fc0bfd3792999ecd8b
prolic / CustomJsonApiSerializer.php
Created Oct 1, 2015
Custom JSON Api Serializer using Fractal and proxy pattern for
View CustomJsonApiSerializer.php
namespace My;
use League\Fractal\Pagination\CursorInterface;
use League\Fractal\Pagination\PaginatorInterface;
use League\Fractal\Resource\ResourceInterface;
use League\Fractal\Serializer\JsonApiSerializer;
class CustomJsonApiSerializer extends SerializerAbstract
You can’t perform that action at this time.