9 examples to analyze how to install dependency through Kepler cloud platform

This article introduces how to install dependency on Kepler cloud platform. What is Kplcloud? kplcloud is a lightweight PaaS platform based on Kubernetes. It manages the application through a visual interface, reduces the degree of application containerization, and reduces the time cost of application containerization. Kplcloud has been serving ...

Posted by AnsonM on Wed, 30 Oct 2019 20:34:38 -0700

Spring boot uses Redis cache

1 redis is installed on linux Install docker yum install docker 2) open docker service docker start 2. Install Redis Go to this website to find out how to install https://hub.docker.com Open redis 3 create a springBoot project (details are not covered in detail) pom.xml file <?xml version="1.0" encoding="UTF-8"?> <project xmlns= ...

Posted by kubis on Mon, 28 Oct 2019 09:59:04 -0700

Redis listens for add, modify, delete and expire events

Preface In the project, you need to listen to some redis events, such as key deletion, modification, expiration, etc. There are many examples of expired events to refer to online, but few events are modified or deleted. Because redis supports publishing and subscription, other event types should also ...

Posted by greens85 on Sun, 27 Oct 2019 20:08:16 -0700

Flask login exercise

Login based on blueprint CBV mode Use blueprint and cbv mode to complete login function Jump to the home page after login Save the session in the redis database on liunx Verify whether it is the login user by using "before" request blueprint from flask import Blueprint,render_template,redirect,views,request,session user = B ...

Posted by Petty_Crim on Sat, 26 Oct 2019 12:00:19 -0700

Golang redisredigo connection pool

Previously, single connection was used. In practical applications, the function of connection pool is often needed. However, the support of redigo for connection pool is weak. Connection pool The application calls the Get method to Get the connection from the pool and uses the connected Close method t ...

Posted by gilliat on Sat, 26 Oct 2019 10:29:19 -0700

A thorough understanding of snowflake algorithm and Baidu meituan's best practice

Words written in the front When it comes to the automatic generation scheme of distributed ID, you are sure to be very familiar with it, and you can immediately tell several schemes that you are good at. Indeed, as an important identification of system data, ID is of great importance, and various schemes have been optimized for many generations ...

Posted by michelledebeer on Thu, 24 Oct 2019 18:04:35 -0700

The magic @ Enable * annotation in SpringBoot?

In the spring boot development process, we often encounter many annotations from @ Enable, such as @ EnableEurekaServer, @ EnableAsync, @ EnableScheduling, etc. today, we will analyze how these annotations work. Contents of this article I. principle of @ Enable *II. Usage of @ Import annotation1. Import configuration class directly2. Se ...

Posted by nalkari on Wed, 23 Oct 2019 18:46:26 -0700

Spring Boot series: Spring Boot integrates Spring Cache and uses RedisCache

In the previous chapter, I explained Spring Boot integrates Spring Cache Spring Cache has completed the implementation of various caches, including EhCache, RedisCache, ConcurrentMapCache, etc. In this section, let's take a look at Spring Cache using RedisCache. I. demonstration of RedisCache Redis is a key value storage system, which is widely ...

Posted by kevinn on Wed, 23 Oct 2019 15:06:44 -0700

A record of the experience of writing shell script -- the disaster caused by special characters

This article first appeared in wechat public account "my little bowl soup". You can pay attention to it by scanning the QR code at the end of the article. Welcome to exchange! In the process of redis containerization, it involves extending the cpu, memory and maxmemory value of redis instance vertically. The pod managed by statefull ...

Posted by ORiGIN on Wed, 23 Oct 2019 12:01:05 -0700

Server code analysis of Go mass chat room project

The whole project uses MVC mode, CS architecture, transmission layer based on TCP protocol, application layer based on custom protocol, and developed with Go language. The project has strong expansibility. Server master function func main() { initPool("localhost:6379", 16, 0, 300*time.Second) ini ...

Posted by K3nnnn on Wed, 23 Oct 2019 09:28:51 -0700