Skip to content

Instantly share code, notes, and snippets.

View androa's full-sized avatar

André Roaldseth androa

View GitHub Profile
@androa
androa / zipcodes.java
Created December 21, 2017 15:32
Distribution of zipcodes with Kafka
static final String ZIPCODES = "zipcodes";
final KTable<Long, Zipcode>
zipcodeTable =
builder.table(ZIPCODE_TOPIC Materialized.<Long, Zipcode, KeyValueStore<Bytes, byte[]>>as(ZIPCODES)
.withKeySerde(Serdes.Long())
.withValueSerde(Serdes.String));
final ReadOnlyKeyValueStore<Long, Zipcode> zipcodeStore = streams.store(ZIPCODES,
QueryableStoreTypes.<Long, Zipcoe>keyValueStore());

Keybase proof

I hereby claim:

  • I am androa on github.
  • I am androa (https://keybase.io/androa) on keybase.
  • I have a public key whose fingerprint is 2104 BC35 29BD 4965 4C88 0D75 643C B2AA EAE7 E977

To claim this, I am signing this object:

@androa
androa / Dockerfile
Last active November 23, 2018 13:55
Minimal reproduction of sigterm/int
FROM navikt/java:8
RUN wget -O /dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64
RUN chmod +x /dumb-init
WORKDIR /app
COPY . /app/
ENTRYPOINT ["/dumb-init", "--", "/app/entrypoint.sh"]