Author Archives: acrocontext

Kafka – Docker compose example for Kafka

Kafka docker compose example. Please set value of KAFKA_ADVERTISED_HOST_NAME for local host IP address. Advertisements

Posted in kafka, Programming | Leave a comment

Time – days of clock vs Monotonic clocks

Getting days of clocks – Linux: clock_gettime(CLOCK_REALTIME) – Java: System.currentTimeMillis() Getting monotonic clocks – Linux: clock_gettime(CLOCK_MONOTONIC) – Java: System.nanoTime() It’s important to know difference between days of clocks and monotonic clocks because days of clocks is measured from a certain … Continue reading

Posted in Programming | Leave a comment

Database – Partitioning name in various database

Various database called partitioning in various name. It’s interesting but they are all same. HBase: region Cassandra: vnode MongoDB: shard Elasticsearch: shard Bigtable: tablet Riak: vnode Couchbase: vBucket

Posted in Programming | Leave a comment

Reactive Stream – Example of implementation of Publisher

View at Medium.com

Posted in Programming | Leave a comment

Reactive Programming

It is worth to read through The Reactive Manifesto definition. https://www.reactivemanifesto.org/glossary

Posted in Programming | Leave a comment

Linux – Network settings for high traffic generating application

/etc/sysctl.conf CENT OS example # default socket memory buffer per a socker net.core.wmem_default=131072(128KB) net.core.rmem_default=131072(128KB) # max socker memory buffer per a socker net.core.wmem_max=2097152(2MB) net.core.rmem_max=2097152(2MB) # tcp buffer size (min, default, max) 4KB, 64KB, 2MB net.ipv4.tcp_wmem=4096 65536 2048000 # enable TCP … Continue reading

Posted in Linux, Programming | Leave a comment

Websocket protocol details

Websocket protocol details. http://lucumr.pocoo.org/2012/9/24/websockets-101/

Posted in Programming, Web | Leave a comment