Tag:news

  • Real time communication of websocket

    Time:2020-7-13

    1. Understand the websocket mechanismOfficial link of Ruan Yifeng2. Operation processa. Writing interface in the background var socketUrl=”http://192.168.15.77:9997/webSocket/1″; b. Establishing a connection socketUrl=socketUrl.replace(“https”,”ws”).replace(“http”,”ws”); console.log(socketUrl); if(socket!=null){ socket.close(); socket=null; } socket = new WebSocket(socketUrl); //Open event socket.onopen = function() { console.log (“websocket is open”); }; //Get message event socket.onmessage = function(msg) { //Real time message console.log (get […]

  • Publish and subscribe to redis

    Time:2020-7-11

    1、 What is it A message communication mode between processes: the sender (PUB) sends the message and the subscriber (sub) receives the message 2、 Command Subscribe C1 C2 C3 // you can subscribe to more than one at a time Publish C2 hello // publish to C2 Psubscribe new * // subscribe to multiple, wildcard* […]

  • Compare the mainstream message queue MQ, explain the four kinds of application scenarios of MQ in detail

    Time:2020-7-9

    Current mainstream MQ products 1.ZeroMQ It is known as the fastest message queuing system, especially for large throughput demand scenarios. It has good expansibility and flexible development. It is implemented in C language. In fact, it is just a re encapsulation of socket library. If it is used as a message queue, a lot of […]

  • Six schemes to ensure data consistency of distributed system

    Time:2020-7-9

    In e-commerce and other businesses, the system is generally composed of multiple independent services. How to solve the data consistency during distributed call? The specific business scenarios are as follows. For example, if a business operation calls services a, B and C at the same time, it needs to meet the requirements of either success […]

  • Use electron to communicate between two processes (the main process and the rendering process)

    Time:2020-7-9

    Use electron to communicate between two processes (the main process and the rendering process) The application examples of this series of articles have been published in GitHub: electron API demos zh_ Cn. You can clone or download it to view. Welcome to star adoptipcThe (interprocess communication) module allows you to send and receive synchronous and […]

  • The characteristics, selection and application scenarios of distributed message queue

    Time:2020-7-8

    What is message queuing Message queue (MQ) refers to a container to hold messages, which is essentially a queue. Message refers to the data transmitted between applications. Messages can be very simple, such as only containing text strings, or more complex, and may contain embedded objects. Message queue is a way of communication between applications. […]

  • Picture sending and display in instant messaging

    Time:2020-7-8

    When doing instant messaging projects, in addition to sending necessary text messages, there are also various message types such as voice, picture, map positioning, etc., among which the others are relatively easy to handle. However, when dealing with images, there are multiple images sent at the same time and single image sent. The following problems […]

  • Talk about distributed transactions and solutions

    Time:2020-7-7

    Source: https://www.cnblogs.com/savor…Author: savorboard preface I haven’t written a blog for a long time recently. On the one hand, it’s because the company is busy recently. On the other hand, it is because of the “cap”] http://www.cnblogs.com/savorb… The next phase of the development work, but has now come to an end. Now let’s start our topic […]

  • EMQ x plug-in persistence series (3) EMQ x redis data persistence

    Time:2020-7-6

    Introduction to EMQ x data persistence The main usage scenarios of data persistence include logging the client’s online and offline status, subscribing topic information, message content, sending message receipt after message arrival to redis, mysql, PostgreSQL, mongodb, Cassandra and AWS dynamodb The persistence module can also be used for client proxy subscription. When the device […]

  • Kafka realizes no message loss and exact once processing

    Time:2020-7-6

    In the introduction of many stream processing frameworks, Kafka is a reliable data source, and Kafka is recommended to be used as a data source. This is because compared with other message engine systems, Kafka provides a reliable data storage and backup mechanism. And through the concept of consumer displacement, consumers can easily return to […]

  • EMQ series (EMQ) persistence

    Time:2020-7-5

    Introduction to EMQ x data persistence The main usage scenarios of data persistence include logging the client’s online and offline status, subscribing topic information, message content, sending message receipt after message arrival to redis, mysql, PostgreSQL, mongodb, Cassandra and AWS dynamodb The persistence module can also be used for client proxy subscription. When the device […]

  • Design a million level message push system

    Time:2020-7-4

    preface First of all, I wish you all a happy mid autumn festival. It hasn’t been updated for more than a week. In fact, I’ve always wanted to make a big move to share some dry goods that you are interested in. In view of my personal work content recently, I took advantage of these […]