All work

Leadership

Co-founding Walrus Network and building its tech

As co-founder and CTO of a Minecraft network, I built its Java game platform, a GraphQL API on Rails, its proxy, and its Kubernetes setup on GKE.

Walrus Network LLC · Co-Founder and CTO · Sep 2019 – Dec 2019

The problem

A new Minecraft network needs everything at once: the games, the backend they talk to, an admin panel, the proxy players connect through, and somewhere to run it all that doesn’t cost a fortune when nobody’s online. As the technical co-founder, all of that was mine to build.

What I built

  1. Container startsMC-Bridge
  2. Base + server filescopied in
  3. Pluginsconfig with parent inheritance
  4. Envsubstituted into every config
  5. Serverboots
How MC-Bridge turns one image into any server on the network.

Loading a plugin’s config

A sketch of the idea, not the production code.

fn load_plugin(plugin, server):
    config = load_yaml(server.config_for(plugin)) ?? load_yaml(base.config_for(plugin))
    if config == null:
        delete(server.plugins / plugin.jar)          # no config means the plugin isn't wanted
        return
    while config.parent:
        config = deep_merge(load_yaml(config.parent), config)
    copy(plugin.jar, server.plugins)
    write(server.plugins / plugin.name / "config.yml", config)

after all plugins:
    for file in server.glob("**/*.{yml,yaml,json,properties}"):
        Env.substitute(file)

Stack

Links