Using Noejs Websocket to Establish one to one Instant Messaging Service
Requirement: One-to-one instant messaging service using nodejs-websocket
Environment: nodejs
Design idea: Save message channel and return message through message channel.
Data Storage: Redis, MongoDB, Show Code without Example
First, I want to know what websocket is.
WebSocket is based on TCP pr ...
Posted by robwilson on Mon, 07 Oct 2019 20:56:47 -0700
Django uses celery and NGINX to generate static pages for performance optimization
Performance optimization principle:
When we want to return a page to client browser, we need to query data in database and render the data and basic page template to form a page to return to the client. But if every user visits the home page once, it will undoubtedly bring great performance problems to database query when the amount of visits ...
Posted by dshevnock on Mon, 07 Oct 2019 13:28:29 -0700
mybatis plus uses redis as a secondary cache
It is recommended that the cache be placed in the service layer. You can customize your own BaseService Impl override annotation parent class method and inherit your own implementation. For convenience, we put the cache in the mapper layer. mybatis-plus integrates redis as a secondary cache, which is slightly different from mybatis integrates r ...
Posted by rockofaith on Mon, 07 Oct 2019 10:42:19 -0700
Dubbo Registry
1. The role of registries
With the registry, service providers can dynamically add and delete services, and service consumers can pull up the latest services to achieve synchronization after receiving update notifications. Unified configuration can be achieved in the registry, and dynamic adjustment of parameters can be automatically notified t ...
Posted by Rangana on Mon, 07 Oct 2019 06:43:30 -0700
Distributed Lock Evolution History of redis in Dead java Synchronization Series
problem
(1) How does redis implement distributed locks?
(2) What are the advantages of redis distributed locks?
(3) What are the disadvantages of redis distributed locks?
(4) Are there wheels available for redis to implement distributed locks?
brief introduction
Redis (full name: Remote Dictionary Server Remote Dictionary Service) is an open so ...
Posted by catgurl_ashley on Mon, 07 Oct 2019 01:05:17 -0700
Introduction to Exceptionless 5.0.0 Local Docker Rapid Deployment
I've written two articles about it before. Use and deployment of Exceptionless, an open source log project But it was based on version 4.1.0 (release in 2017), and Exceptionless launched version 5.0.0 more than two years later.
I. About Exceptionless 5.0.0
Exceptionless is an open source, real-time and useful log collection framework, which mak ...
Posted by blaster_master on Sun, 06 Oct 2019 11:21:28 -0700
Introduction to Spring Boot Cached Application Memcached
This chapter is a tutorial on the use of Mmecached in Spring Boot. Memcached and Redis have their own advantages. This paper mainly studies how to apply integrated Mmecached in Spring Boot.
spring boot 1.5.x/2.x
memcached
jdk 1.8+
Source code download of this project
1 Install memcached
It is convenient to install under window s. Just double- ...
Posted by mystrymaster on Sun, 06 Oct 2019 09:12:03 -0700
Spring cloud project configuration extension loaded from local config directory
Inspired by Ali Open Source Nacos, this paper loads configuration from Nacos service to application after application start-up, and wonders whether loading configuration can be loaded from local storage during local development, which can also speed up development efficiency.
First
Let's look at the bootstrap.yaml configuration for the Spring C ...
Posted by lauthiamkok on Sat, 05 Oct 2019 19:19:15 -0700
[Redis5 Source Learning] Analysis of the persist of redis command
Grape
Command syntax
Command Meaning: Remove the lifetime of a given key and convert it from "volatile" (with lifetime key) to "persistent" (with no lifetime and never expired key).Command format:
PERSIST key
Command actual combat:
redis> SET mykey "Hello"
OK
redis> EXPIRE mykey 10
(integer) 1
redis> TTL mykey
(int ...
Posted by FrankHarley on Sat, 05 Oct 2019 01:14:43 -0700
Mybatis uses Redis instead of secondary caching
1. Case introduction
The results of Mybatis query database are stored in Redis database as key-value pairs instead of secondary cache in Mybatis. When querying the same operation, we can read the results directly in Redis to improve efficiency.
2. Case Realization
2.1 Importing project dependencie ...
Posted by iamatube on Fri, 04 Oct 2019 12:18:16 -0700