Use aws sqs as buffer queue (go)

background As a newcomer, the first task involved in the project is to add message queues for the storage of operation records. Why should we do this? The reasons are as follows: in the existing system, we directly add the user's operation records to the mongodb database, but when the peak occurs in our system, we find that mongodb can't stand ...

Posted on Sat, 26 Oct 2019 05:12:08 -0400 by nealios

Eureka application registration and cluster data synchronization source code analysis

Prior to EurekaClient automatic assembly and startup process analysis We mentioned in the article that when constructing the DiscoveryClient class, it will register itself to the server. This article will analyze this registration process. Client initiated registration boolean register() throws Throwable { logger.info(PREFIX + "{}: ...

Posted on Mon, 21 Oct 2019 13:00:39 -0400 by blogger3

Eureka Server Automatic Assembly and Start-up Process Analysis

Before starting this article, I think you are familiar with the basic usage of Spring Cloud and Spring Book. If you are not familiar with Spring Cloud, you can refer to my previous articles. The source code for this article is based on Spring Boot 2.0, Finchley.RELEASE of Spring Cloud. @ Annotations to Enable Eureka Server We know that when ...

Posted on Fri, 11 Oct 2019 17:25:15 -0400 by gigabyt3r

k8s learns to configure and use storage class

In order to solve this problem, Kubernetes has introduced a new resource object for us: Storage Class, through Storage Clas. According to the definition of s, administrators can define storage resources as some kind of resources, such as fast storage, slow storage and so on. According to the descriptio ...

Posted on Sat, 05 Oct 2019 11:16:29 -0400 by lucifersolutions

Java 8 converts list to map

Introduction Create an object class public class Hosting { private int Id; private String name; private long websites; public Hosting(int id, String name, long websites) { Id = id; this.name = name; this.websites = websites; } //getters, setters and t ...

Posted on Fri, 04 Oct 2019 18:13:33 -0400 by someone2088

2. Deep into asyncio protocol (task object, principle of calling protocol, concurrency of protocol)

Owing to the fact that I started blogging, I always took notes to read by myself before, so there may be a variety of problems, such as unclear expression, too verbose and so on. If you have any questions or criticisms, you are welcome to leave a message in the comments section. If you are new to the project, please read the previous article fi ...

Posted on Wed, 25 Sep 2019 04:01:16 -0400 by Gary King

Summary of Code deployment of Jenkins

1. First of all, the pipeline of Jenkins job is used here. The grammar can be referred to as follows: Jenkins Glossary 2. So why do we pack zip packages? Because when we need to use the Code deploy service of AWS, we need to package the source code of our application into zip and upload it to S3. W ...

Posted on Thu, 19 Sep 2019 07:12:33 -0400 by craige

k8s and aws--add-ebs-tags-controller adds tags to EBS

Preface In the process of using AWS hosted k8s-eks, it is unavoidable to use AWS LB and block storage. All resources in AWS public cloud can customize tags, which has the advantage that resources can be audited and counted in different dimensions according to the specific meaning of tags. For example, according to department, according to proje ...

Posted on Sat, 11 May 2019 11:45:56 -0400 by xplosiongames

Introduction to Amazon DynamoDB 8: Delete items

The last article introduced DynamoDB updates, which will cover project deletion operations and dynamoab-py Delete data from tables In SQL, the DELETE statement Deletes one or more rows from the table. DynamoDB deletes an item at a time using the DeleteItem operation. SQL In SQL, you can use the DELETE statement to delete one or more rows. The W ...

Posted on Fri, 19 Apr 2019 13:18:33 -0400 by Boz

libaco: An extremely fast lightweight C asymmetric Cooperative Library (10 ns/ctxsw+10 million concurrent processes consuming only 2.8 GB + Github Trending)

Introduction to 0 Name libaco - An extremely fast, lightweight, C-language asymmetric coprocess library. The code name of the project is Arkenstone (viii) Asymmetric COroutine and Arkeenstone are the names of aco. Sys V ABI Intel 386 and Sys V ABI x86-64 are currently supported. The following is a brief introduction to the project: In ad ...

Posted on Sat, 12 Jan 2019 16:27:11 -0500 by poirot