0%


Read more »

Benchmark Result

Short Description

A infinitely scalable. advertisement management system, baked with replicated advertisement business state machine, replicated log system, and fault recovery mechanism. Guaranteed the consistency and durability of the advertisement operation.

Read more »

Read more »

Read more »

Horizontal Pod AutoScaler

Deployment placement

Note

the resource property of container must be set, otherwise the scaler can’t get your container runtime metrics

Read more »

problem description

nextjs get token from another site(usually oauth server) and send the token to the next js server(the server which host the nextjs generate the web page and send to your browser) to let it use in getserverprops, then we can protect our route or fetch some auth-need data before render

solution

You can use an HTTP-only cookie to store the token and pass it between the client and server. This approach works with serverless deployments and multiple instances.

Here’s a solution using TypeScript and the next-iron-session package to store the token in an encrypted cookie:

Read more »

pull private container registry from gitlab

  1. to your repo > setting > repository

  2. expand Deploy Token and set tokennam, username and scope

  3. click create deploy token

  4. then run:

    1
    kubectl create secret docker-registry <secrect_name> --docker-server=registry.gitlab.com --docker-username=<username> --docker-password=<gitlab_token> -n <namespace>
Read more »