Diagram is code: use Diagrams to make a prototype of cloud system architecture

I. Preface Yesterday, I found a very good prototype Library of cloud system architecture Diagrams Through it, we can use code to draw system architecture prototypes such as Alibaba cloud, AWS, Azure, K8S, etc. Compared with dragging and adjusting various icons on the UI, this method is more in line with our programmers' usage habits. This artic ...

Posted on Sun, 16 Feb 2020 03:57:22 -0500 by DigitalNinja

How to extract numbers from strings in Python?

I'll extract all the numbers contained in the string. Which is more appropriate for the purpose, regular expression or isdigit() method? Example: line = "hello 12 hi 89" Result: [12, 89] #1 building @jmnas, I love your answer, but I can't find floating-point numbers. I am working on A script to analyze the code to be fed into C ...

Posted on Wed, 12 Feb 2020 09:58:40 -0500 by deesse

OAuth2 protocol and Spring Security OAuth2 integration

The authorization protocol of OAuth 2.0 allows third-party applications to access restricted HTTP resources. As usual, when you use Github and Google account to log in to other systems, you use the OAuth 2.0 authorization framework. The following figure is the authorization page diagram of using Github account to log in to Coding system: ...

Posted on Sun, 19 Jan 2020 01:58:18 -0500 by tanita

Install redis and PHP redis under linux

Now there are more and more cache applications in the project, and the author often uses the yum command to install them, but today they are installed under AWS, and there is no package under yum. Finally, compile and install. I will install this time. 1, Install redis Find the yum package first: yum list |grep redis There is no package fou ...

Posted on Tue, 31 Dec 2019 12:00:44 -0500 by jimmy2gurpreet

Thinkephp6 installation error, composer install tp6 error Parse error: syntax error

Parse error: syntax error, unexpected ':', expecting '{' in vendor \ topthink \ think helper \ SRC \ helper.php on line 233 Execute install statement composer create-project topthink/think tp The reason is that the version of php is wrong. Official document ThinkPHP 6.0 The environmental requirements are as follows: PHP >= 7.1.0 ...

Posted on Tue, 10 Dec 2019 10:58:05 -0500 by lar5

bitnami gitlab backup and recovery operation method

bitnami gitlab backup and recovery operation method BitNami is an open source project. The open source software produced by this project includes the installation of Web applications and solution stacks, as well as virtual devices. This article will not introduce the one click installation solution 1. backup No need to shut ...

Posted on Mon, 09 Dec 2019 13:20:43 -0500 by mattl

Eureka Registry - service discovery

Eureka registry / service discovery framework Eureka is a service discovery framework developed by Netflix. It is a REST based service. It is mainly used to locate the middle tier services running in the AWS domain to achieve the purpose of load balancing and service failover in the middle tier. Spring cloud integrates it into its subproject, ...

Posted on Sun, 08 Dec 2019 04:39:48 -0500 by sirish

PostgreSQL datediff date interval (unit conversion) compatible with SQL usage

Label PostgreSQL , datediff background Use datediff to subtract time or date. The interval obtained is converted to target unit (day, month, quarter, year, hour, second... Etc.). DATEDIFF ( datepart, {date|timestamp}, {date|timestamp} ) week select datediff(week,'2009-01-01','2009-12-31') as numweeks; numweeks ---------- 52 (1 ...

Posted on Thu, 21 Nov 2019 12:50:05 -0500 by smurl

etcd-operator Quick Start Complete Tutorial

Operator refers to a class of cloud native expansion services based on Kubernetes Custom Resource Objects (CRDs) and Controllers, where CRDs define custom resource objects created and managed by each operator, and Controllers contain operational logic codes associated with the management of these objects. For ordinary users, if you want to depl ...

Posted on Mon, 18 Nov 2019 23:51:07 -0500 by yrrahxob

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