MySQL various lock mechanisms and scenarios

The essence of locking a certain data in MySQL is actually to create a lock structure in memory and associate it with it, and this lock structure is the MySQL lock we often mention. Internal structure of lock (InnoDB) In order to save resources, not every lock has a separate lock structure corresponding to it. […]

Python script implements sending Feishu, phone call, and SMS notifications after Flink task failure

The python script monitors Flink tasks and sends Feishu and phone calls after failure 1. Prerequisites: 1. Have permission to log in to the active node that can access Hadoop 2. Feishu robot address 3. Alibaba arms custom integration address 4. python3.6 version 2. Code import requests import json import time import subprocess import urllib.parse […]

[Recommended] The use of SpringMVC and JSON data return and exception handling mechanisms

Yanyanye: Personal homepage Personal column: “[Recommended] Integration of Spring and Mybatis” The ideal of life, in order to constantly renew yourself! 1.JSON In SpringMVC, JSON data is usually returned by using the `@ResponseBody` annotation to convert the Java object into JSON format and send it directly to the client. This annotation can be used for […]

SMS filtering APP development

Number of words in this article: 7033 Estimated reading time: 42 minutes I have always wanted to develop my own text message filtering APP, but I have never implemented it. Now I finally calm down and record the overall development process while developing it. 01 Spam SMS Sample The first question we encounter is, since […]

Automated test program – headless browser, check whether the web page is loading normally, if it is not normal/failed, it will automatically alert Feishu/DingTalk/SMS

A website may have N addresses. For example, selecting a category entry is a URL address. So how can we traverse them all and check whether they are loading normally? Here we can use the query database and use regular rules Automatically splice URLs and traverse all links. Share the code below. 1: Create a […]

Use Akka’s Actor to simulate Spark’s Master and Worker working mechanisms

Use Akka’s Actor to simulate Spark’s Master and Worker working mechanisms The coordination working principle of Spark’s Master and Worker In Apache Spark, Master and Worker communicate and remain active through a heartbeat mechanism. The following is the workflow of the heartbeat mechanism between Master and Worker: After the Worker starts, it will send a […]

SpringBoot accesses Aurora SMS service API

Preliminary preparation Note: Individual users are temporarily unable to activate the SMS function 1. Register an account and perform real-name authentication https://www.jiguang.cn/ 2. After successful registration, you will receive 100 + 10 SMS services 3. Enter the workbench and create a signature Create a signature according to personal needs. After the signature is successfully created, […]

021-Building microservices from scratch-SMS service (1)

Write first If you gain something from this project, please remember to follow it with Star. This is a very good encouragement and support for me. Source code address (backend): https://gitee.com/csps/mingyue Source code address (front-end): https://gitee.com/csps/mingyue-ui Document address: https://gitee.com/csps/mingyue/wikis SMS service Short Message Service (SMS) is a communication method based on mobile phone networks, used […]