Python FastAPI series: Custom FastAPI middleware middleware

Python FastAPI series: Custom FastAPI middleware FastAPI middleware middleware execution logic Create FastAPI middleware middleware Create middleware using decorators Create middleware by inheriting BaseHTTPMiddleware Create middleware according to ASGI specifications In some cases, we need to perform some common functions on all or part of the routes of the entire FastAPI application, such as authentication, […]

The use of Django middleware middleware

Summary Middleware in Django is a hooks framework embedded in Django’s request/response processing mechanism. It is an underlying plug-in system that modifies Django’s global input and output. Let us customize some of the functions we want to handle user requests. In Django, middleware is actually a class, which contains a specific set of functions. When […]

[Middleware] Increase the flash kill rate of the flash kill system by 300%? Teach you how to use redis and rabbitmq to optimize applications!

Foreword: In recent years, with the development of the Internet, e-commerce has become more and more popular among people, and flash sale activities have also become an important marketing tool in e-commerce. However, flash sale activities place extremely high requirements on system performance, concurrency, and availability, so some efficient and reliable technologies are needed to […]

Middleware security-CVE recurrence&Weblogic&Jenkins&GlassFish vulnerability recurrence

Directory Service Attack and Defense-Middleware Security &CVE Recurrence &Weblogic &Jenkins &GlassFish Vulnerability Recurrence Middleware-Weblogic security issues Vulnerability recurrence CVE_2017_3506 vulnerability reappears Middleware-JBoos security issues Vulnerability recurrence CVE-2017-12149 vulnerability reappears CVE-2017-7504 vulnerability reappears Middleware-Jenkins security issues Vulnerability recurrence CVE-2017-1000353 vulnerability reappears CVE-2018-1000861 vulnerability reappears Middleware-Glassfish Security Issues Vulnerability recurrence CVE-2017-1000028 vulnerability reappears Service Attack and Defense-Middleware […]

Weblogic middleware vulnerability collection

1. Deserialization 2. Upload any file 3. Deploy war package in the background 1.Weblogic XMLDecoder deserialization vulnerability (CVE-2017-10271) 1.Vulnerability description Weblogic’s WLS Security component provides webservice services to the outside world. XMLDecoder is used to parse the XML data passed in by the user. During the parsing process, a deserialization vulnerability occurs, allowing arbitrary commands […]

Middleware security-CVE recurrence&IIS&Apache&Tomcat&Nginx vulnerability recurrence

Directory Middleware Security &CVE Recurrence &IIS &Apache &Tomcat &Nginx Vulnerability Recurrence Middleware-IIS security issues Middleware-Nginx security issues Vulnerability recurrence Nginx parsing vulnerability recurrence Nginx file name logic vulnerability Middleware-Apache-RCE & directory traversal & file parsing and other security issues and vulnerability recurrence Vulnerability recurrence CVE_2021_42013 RCE Code Execution (Apache RCE) CVE_2021_41773 Directory Traversal (Apache Directory […]

Big data middleware-Kafka

Kafka installation configuration First we upload the kafka installation package to the virtual machine: Unzip to the corresponding directory and modify the corresponding file name: First we go to kafka’s config directory. The first file we want to modify is the server.properties file. The modification content is as follows: # Licensed to the Apache Software […]

Mycat2 distributed database middleware

1. Installation and deployment Mycat2 currently does not support directly obtaining Docker images. You need to package the image yourself through Dockerfile. In fact, this is also for developers’ consideration, such as some personalized functions, such as custom sharding, etc. Dockerfile FROM docker.io/adoptopenjdk/openjdk8:latest ENV AUTO_RUN_DIR ./mycat2 ENV DEPENDENCE_FILE mycat2-1.20-jar-with-dependencies.jar ENV TEMPLATE_FILE mycat2-install-template-1.21.zip #Set up Alibaba […]

[Middleware] Practice of mixed invocation of multi-language services

Practice of mixed invocation of multi-language services Foreword For Java services, the microservice framework is already very mature. From service registration to service discovery, RPC calls between various microservices have open source implementation logic. However, the author recently needs to deploy Java and Python microservices in the cluster at the same time and implement mutual […]