Skip to content

Instantly share code, notes, and snippets.

View fals's full-sized avatar

Filipe Augusto Lima de Souza fals

View GitHub Profile

Requirements

Objective: Design a system for storing and retrieving OCI (Open Container Initiative) images, similar to Docker Hub, Amazon ECR, Google Artifact Register or Azure Container Registry. This interview focuses on understanding the candidate's ability to design a scalable, reliable, and performant system.

  1. Core Functionality:
    • Image Upload (Push): Users should be able to upload (push) OCI images to the registry. These images can be large (gigabytes).
    • Image Download (Pull): Users should be able to download (pull) OCI images from the registry.
    • Image Listing/Search: Users should be able to list and search for images based on name, tags, or other metadata.
    • Image Deletion: Users should be able to delete images (consider implications for dependencies).
  2. Scalability:
@fals
fals / input_cboyz.json
Last active March 14, 2023 11:36
input_cboyz
[
{
"name": "John",
"health": 10,
"damage": 1
},
{
"name": "Bill",
"health": 8,
"damage": 2
@fals
fals / Dockerfile
Created April 18, 2020 13:11
kafka-docker
FROM golang:alpine AS builder
# Set necessary environmet variables needed for our image
ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64
ADD . /go/app
@fals
fals / endereco.service.ts
Last active January 26, 2017 21:29
CodingFirstAngular2
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Endereco } from './model/endereco.model';
import { Cidade } from './model/cidade.model';
import {BaseService} from '*****';
import { NotificationService } from '****';
@fals
fals / base-service.ts
Last active January 26, 2017 21:27
CodingFirstAngular2
import { Injectable } from '@angular/core';
import { Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { NotificationService } from '********';
@Injectable()
export class BaseService {
protected url: string;
protected http: Http;
@fals
fals / base-service.ts
Created January 26, 2017 15:43
CodingFirstAngular2
import { Injectable } from '@angular/core';
import { Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { NotificationService } from '********';
@Injectable()
export class BaseService {
protected url: string;
protected http: Http;
@fals
fals / AutomapperConfig.cs
Last active November 10, 2016 13:20
AutoMapper_issue_1783
public class AutoMapperConfig
{
public static void Register()
{
Mapper.Initialize(cfg => cfg.CreateMap<Conselho, ConselhoResponse>();
Mapper.Initialize(cfg => cfg.CreateMap<ConselhoAbragencia, ConselhoAbragenciaDTO>()
.ForSourceMember(x => x.Conselho, x => x.Ignore()));
Mapper.Initialize(cfg => cfg.CreateMap<Endereco, EnderecoDTO>();