Tag:Send a message

  • Analysis of Kafka principle (1) – startup and initialization of producer

    Time:2021-10-18

    1. Sequential startup of core components 2 Partitioner Used to determine which partition each message is routed to. It is an interface. The core is a partition method that returns which partition int uses. The implementation class is defaultpartitioner, which implements partition and uses an atomic self increasing random number, private final AtomicInteger counter = […]

  • Analysis of Kafka principle (2) – acquisition of producer metadata

    Time:2021-10-17

    1 overall process (1) Custom message interceptors are generally useless. (2) Wait for synchronization and ‘pull metadata’. The first issue of topic requires pulling metadata, which is a lazy loading idea. The information of the cluster is pulled. Cluster contains cluster topic broker partition and other information. (3) Serialize topic, key and value into byte […]

  • Using springboot + websocket to realize single person chat

    Time:2021-8-12

    preface Recently, we are working on a chat function. Specific requirements: similar to wechat, in a friend list, click a friend to establish a chat connection with the friend, send a message to the friend, and the other party can display it in real time for real chat.Before doing this, I made a little effort […]

  • Talk about spring’s integration of Kafka

    Time:2021-8-3

    order This article briefly combs some usage options of production / consumption Kafka messages in Java applications. Available class libraries kafka client spring for apache kafka spring integration kafka spring cloud stream binder kafka In addition to the official Java API class library, there are many additional packages in the spring ecology. Here is a […]

  • Environment construction: install MySQL database under linux environment

    Time:2021-5-6

    1. mount this database 1)   Yum – y install MySQL server (simple) Yum command automatically searches for MySQL service resources from the Internet, downloads them to the local and completes the installation     2)   You can also download the MySQL service on the Internet, transfer it to the Linux system through xftp, and […]

  • Uni app development experience sharing 18: docking with third party H5

    Time:2021-4-10

    1. In uni app, WebView is used to prevent the third party from jumping out of the app export default { data() { return { url: ” } }, onLoad(option) { // console.log(JSON.parse(decodeURIComponent(option.url))) this.url = JSON.parse (decodeURIComponent( option.url ))//Jump to the URL of the third party }, methods:{ Message (E) {// receive the message from […]

  • [nodejs official account development record] half hour to develop WeChat official account

    Time:2021-2-21

    Make an advertisement first!! (I don’t know if I can)Tencent ivweb team widely recruit front-end, a large number of HCIf you are interested, please contact me at VX: chenxy712 or send your resume to my email address: [email protected] preparation in advance Recently, demand is a bit undeveloped. Lu has been a WeChat official account. First, […]

  • HTML5 PostMessage delivers messages across domains and windows

    Time:2020-10-4

    Parent page code: Select location demo <span style=”background-color: #f5f5f5; color: #000000;”> $(</span><span style=”background-color: #f5f5f5; color: #000000;”>”</span><span style=”background-color: #f5f5f5; color: #000000;”>#ifr</span><span style=”background-color: #f5f5f5; color: #000000;”>”</span><span style=”background-color: #f5f5f5; color: #000000;”>).load(</span><span style=”background-color: #f5f5f5; color: #0000ff;”>function</span><span style=”background-color: #f5f5f5; color: #000000;”> () { </span><span style=”background-color: #f5f5f5; color: #0000ff;”>var</span><span style=”background-color: #f5f5f5; color: #000000;”> data </span><span style=”background-color: #f5f5f5; color: #000000;”>=</span><span style=”background-color: #f5f5f5; […]

  • Electronic sends a message to the child iframe in WebView

    Time:2020-7-22

    The sender of electronic can communicate with the WebView page by loading preload in the WebView page. The official document also gives an example code: //On the renderer page const webview = document.querySelector(‘webview’) webview.addEventListener(‘ipc-message’, (event) => { console.log(event.channel) // Prints “pong” }) webview.send(‘ping’) //In the preload of WebView const { ipcRenderer } = require(‘electron’) ipcRenderer.on(‘ping’, […]