zabbix alarm information pushed to kafka

Application scenario Due to the high security requirements of the company where the friend is located, zabbix's network environment cannot be connected to the Internet, so it is not possible to send the alarm directly to some instant messaging tools through zabbix, which requires sending the alarm message to some middleware and forwarding it t ...

Posted by lanas on Tue, 26 May 2020 19:11:42 +0200

BeanMap transforms objects to maps

There are many ways to convert JavaBeans and map s, such as: Through ObjectMapper, bean s are first converted to json, and then json is converted to map. However, this method is relatively cumbersome and inefficient test , it takes 12 seconds to cycle through 10000 bean s!!! Not recommended adopt Java Reflection, get the properties and ...

Posted by sysgenmedia on Sat, 23 May 2020 16:34:30 +0200

SpringCloud exception handling unified encapsulation for me to do-use

brief introduction Repeat function for me to write.There are global exception handling and return wrapping in the SpringBoot project, and the return front end is with fields such as succ, code, msg, data, and so on.Single project scenario is a good solution, when there are many micro-service modules, many cases of development are to copy the or ...

Posted by iijb on Sat, 23 May 2020 05:57:28 +0200

Smart Serverless, Easy to set up WeChat Public Number intelligent background service

Generally speaking, to add more functions to the WeChat public number, you need a server to set up the public number background service.So is there a simpler way to implement such a public number background under the Serverless architecture?Let's try it? Preliminary Setup Serverless native development First of all, of course, we must have a WeC ...

Posted by uwannadonkey on Fri, 22 May 2020 05:11:37 +0200

Flash implements HTTP token authentication HTTP token auth

Token authentication In restful design, user authentication mode usually uses json web token instead of traditional HTTP Basic authentication (incoming account password) The token authentication mode is as follows: add token to the request header Implementation in Flask Flask extension flask httpauth provides the authentication ...

Posted by hchsk on Thu, 21 May 2020 16:58:01 +0200

docker installation and use under CentOS 7

docker start stop sudo systemctl start docker.service sudo systemctl stop docker.service sudo systemctl restart docker.service sudo systemctl status docker.service sudo systemctl enable docker sudo docker ps -a ## <-- List existing images ## sudo docker stop 17dd4ab4cda2 ##<-- 17dd4ab4cda2 by container id ## sudo docker rm 17dd4ab4cda ...

Posted by Scorptique on Thu, 21 May 2020 16:38:11 +0200

1. Basic use of reflection in Golang

Golang also provides reflection mechanism, like Java, which obtains information about objects at run time and updates their internal state; Golang obtains object types, field types and values, calls struct instance methods, updates instance values, and so on. _Go Gos The two most important objects and functions related to reflection in the refl ...

Posted by mistercoffee on Tue, 19 May 2020 19:19:09 +0200

Web development, only JS can complete the development of Express query API interface

Some netizens left a message saying that they want to call the express bird API interface to realize Express query, but they don't understand the back-end development, JAVA, PHP, C and python. They asked me if I could realize express interface query, and I said what would you do, he said, I only know a little JS, I replied that it's enough. No ...

Posted by itbegary on Tue, 19 May 2020 16:19:13 +0200

Script custom command

preface There are many built-in commands in the script, but sometimes we want to customize some commands, because writing a script is not as convenient as typing a command. However, there is no document for the custom command on the scrap website. There is only one sentence: you can also use the commands_ The module setting adds a custom projec ...

Posted by wolfcry044 on Tue, 19 May 2020 10:00:43 +0200

react Reading Notes

Source Digging Booklet - react Actual: Design Patterns and Best Practices react design idea Property Expansion - Keep the props required by the current component and pass on other props var obj = {a: 1, b: 2, c: 3, d: 4, e: 5} const { a, ...other } = obj console.log(other) // {b: 2, c: 3, d: 4, e: 5} In react, the interface is entire ...

Posted by vulcant13 on Sat, 16 May 2020 21:57:03 +0200