ARTS Carding Activities - Third Week

ARTS Carding Activities - Third Week 1. Algorithms do an algorithmic problem of leetcode 146. LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return ...

Added by Tandem on Wed, 04 Sep 2019 18:06:34 +0300

Sprinig Boot elegantly implements interface idempotency, which was so simple

1. Concepts Idempotency, commonly referred to as an interface, makes the same request multiple times and must ensure that the operation can only be performed once For example: Order interface, order cannot be created more than once Payment interface, double payment of the same order can only be deducted once Alipay callback interface, may hav ...

Added by reivax_dj on Tue, 03 Sep 2019 21:09:11 +0300

A simple understanding of scrapy

Scrapy scrapy framework, asynchronous crawler framework. Synchronization and Asynchronization Synchronization: The next method relies on the previous method. If the previous method is not finished, the next method will not be executed. Asynchronou ...

Added by CaptainStarbuck on Mon, 02 Sep 2019 04:51:31 +0300

Knowledge Points in the Process of D Language Learning

Knowledge Points in the Process of Adding, Deleting and Revising 1. If we want to save the data we added, we can use the following way to check the additions and deletions of D language items. auto repo = new xxxRepository(_cManager); repo.save(xxx); //So we save the information in the data table. 2. How to Search Information in D Language a ...

Added by atawmic on Fri, 30 Aug 2019 06:52:26 +0300

SpringBoot: Design for high concurrent browsing

1. Background Article browsing statistics, low's practice is: each time a user browses, the front-end will send a GET request for details of an article, the article will be + 1 browsing volume, stored in the database. 1.1 There are several problems with this: Write data in the business logic of the GET request! If the concurrency is high, th ...

Added by danielhalawi on Mon, 26 Aug 2019 19:49:40 +0300

Using prometheus to monitor traefik, redis, k8s cluster nodes and kubelet

1. Data indicators of Prometheus are obtained through an open HTTP(S) data interface. We do not need to install monitoring agent s separately. We only need to expose a metrics interface. Prometheus will pull data regularly. For some ordinary HTTP services, we can reuse this service directly. Add A / metrics interface to expose Prometheus2. Som ...

Added by eashton123 on Mon, 26 Aug 2019 18:18:36 +0300

python-generator, derivation, recursion

Catalog 1 Generator (Variation of Function) 2 Derivative Formula 3 Recursion 1 Generator (Variation of Function) Judging whether a function is a generator function: Just see if there is yield inside the function # Generator function (whether yield is included in it) def func(): print('F1') y ...

Added by waradmin on Mon, 26 Aug 2019 16:55:36 +0300

Message Middleware - Advanced Features of RabbitMQ

Preface Before that, we introduced the installation of RabbitMQ, the comparison of major message middleware, the core concept of AMQP, the use of management console, and the Quick Start RabbitMQ. This chapter introduces the advanced features of RabbitMQ. It is introduced in two parts (top/bottom). How can messages be delivered 100% successfu ...

Added by njdirt on Mon, 26 Aug 2019 10:54:53 +0300

[Distributed Architecture] (10) -- A Distributed Current Limiting System Based on the Characteristics of Redis Components

Distributed-Redis-based Interface IP Current Limitation In order to prevent our interfaces from being accessed maliciously, for example, when someone accesses our interfaces frequently through JMeter tools, the interface response becomes slower or ...

Added by VertLime on Wed, 21 Aug 2019 15:38:06 +0300

How to change shopping cart logic with python style

There was a blog post written about the business logic of shopping cart, which used cookie s and redis to store the data of shopping cart of the unregistered and logged-in users. Although the business logic has been well completed, the redundancy of modern codes is very serious, and they are not Python-specific enough. Today let me use python-s ...

Added by djopie on Fri, 16 Aug 2019 12:50:53 +0300