Coder Social home page Coder Social logo

exbotanical / goldmund-sh-i Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2.26 MB

Retired personal website. Distributed, multi-service system automated with Kubernetes, custom headless CMS, and bespoke CDN pipeline.

License: MIT License

JavaScript 92.61% Dockerfile 0.54% Shell 6.85%
command-line-tool docker docker-compose full-stack-application kubernetes lambda-architecture next-js redis server-side-rendering ssr

goldmund-sh-i's Introduction

My name is Matthew Zito. I'm a software engineer at Amazon Web Services. Lately, I'm interested in schedulers, daemons, and processes. Here you'll find all of my open source personal projects written in js, ts, c, go, java, python, kotlin, rust, ocaml, x86 assembly (prefer AT&T syntax).

For more stuff, you can check out my software bucket list and finally, my personal blog where I predominantly write source code reviews. `

goldmund-sh-i's People

Contributors

exbotanical avatar

goldmund-sh-i's Issues

[feature] Upgrade to HTTP/2

This is a low-priority feature. I'll probably wait until the various Node deps I'm relying upon offer better support for HTTP/2.

configure CI/CD pipeline

Given we've already built out two containerized services (the next server and the DPS micro-service), preemptively establishing a CI/CD pipeline for development is a denomination long passed. Blocks TBD; needs to be done before analytics micro-service dev begins.

[goldmund-api] add GNU custom header

const msg = "GNU Terry Pratchett"

module.exports = function(req, res, next){
    setHeader(res,msg);
    next()
}

module.exports.msg = function(headerText){
    msg = headerText.replace(/[^\x20-\x7E]+/g, '')
    return this;
}

function setHeader(res, msg){
    res.setHeader('X-Clacks-Overhead', msg );
}

[CI/CD] Add Makefile for repository

  • 'Single source of truth' root environment allocation
  • build CLI binary and persist in PATH (prompt user, macos + linux only)
  • automate docker deployment pipeline

[CI/CD] set polling for database index to trigger SSG re-build

Whenever a new resource is pushed to the database via the CLI, the client application [next-server] needs to be notified so it can include said resource in its static site generation build profile. In order to do this, a shell script can live inside the host container and poll for db index changes, and trigger SSG builds as needed.

wrap services in docker-compose

Way over-due for dev/prod pipeline configuration.

  • bind dev src directory to DPS' tmp volume
  • write bash script to seed DB inside container using constants lib (bypasses known environment issues in Docker)

[CI/CD] Est. A/B Deployment Pipeline

Implement A/B testing across cloned micro-service instances once Nginx incorporated for load balancing

A lot of research will be needed on this one...let's do it!

[CI/CD] Est K8s Deployment

  • Kubernetes deployment configuration should mirror Compose build requirements
  • All networks should be bound to loopback interface/internal pod namespace
  • Web NodePort should be configured (dev only)
  • The following prod endpoints should be configured: web, SSL tunnel
  • An Ingress controller should be configured
  • RBAC should be enforced.
  • TLS should be configured across all planes.

[feature] Add steganographer

low priority

  • Runs as a separate Node worker process
  • Pub/Sub w/Redis to coordinate image conversions.
  • Sharp entropy to auto-crop and deflate assets prior to persisting in-memory

implement batch processing in DPS

data processing service requires a dedicated handler for dynamically processing batches contingent on queries from the client service (Next v9 server)

  • it should accept as input the ObjectID of the last document in the preceding batch (ObjectID should have a default parameter of null)
    • if ObjectID evaluates to null, begin cursor at batch 0
  • it should return the ObjectID of the last document in the current batch being processed
    • if the returned value last processed ObjectID evaluates to null, signify EOF
  • it should return the current batch of documents
    • if the returned documents object evaluates to null, signify EOF

[goldmund-client] configure multi-zonal sub-ingress

In order to scale up goldmund-client, I need to establish a sub-ingress service which is charged with handling the routing of instances' respective BUILD_IDs. At a glance, I suspect the path to accomplishing this lies in Nextjs' advanced 'multi-zone' feature, as described here

[goldmund-client] TypeScript Migration

  • Wire Nextjs built-in TS support via next.config
  • Migrate client service src to TypeScript

This will afford for better scaling in the future as the codebase will be exponentially more aligned with self-documentation if type-specification is provided. This will tangentially improve security as well.

[goldmund-client] Route backend to nginx reverse proxy

Now that the reverse proxy is working properly, it's time to add the second service:

  • test API endpoint as configured via reverse proxy
  • run nmap scan on daemon host
    • All Docker host ports are locked down
    • Services are only accessible via reverse proxy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.