swoole optimized configuration and stress test

swoole optimized configuration and stress test 1, Server hardware: 2, Server side: 3, Client: Modify the following file: vim /etc/sysctl.conf Configuration and installation of pressure measuring tools: 4, Server kernel optimization: 5, Testing 1, Server hardware: 2 vCPU 4 GB (I/O optimization) 100Mbps (peak) 2, Se ...

Posted by nickcwj on Sat, 21 Dec 2019 12:50:47 -0800

Configuring uwsgi load balancing with nginx

How to use uwsgi to run web services is not covered here See nginx configuration directly # No load balancing server { listen 9000; add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers Authorization,Origin,X-Requested ...

Posted by Smeep on Fri, 20 Dec 2019 11:42:55 -0800

Aggregate query and fuzzy query

Aggregate query The code in the test class is:Using the map collection //Aggregate query @Test public void test4(){ UsersDao dao=new UsersDaoImpl(); Map m=dao.jisuan(); System.out.println(m.get("MAX")); } Output the result of the query. get("") The code in the implementation class ...

Posted by MerMer on Fri, 20 Dec 2019 07:37:52 -0800

LNMP memcached front end data cache and session session retention

Article directory 1, memcached front end data cache 1. Test the lnmp environment. 2. Download and install memcache 3. Modify php.ini configuration file 4. Restart nginx and php 5. Write php connection memcached test 2, memcached for web session retention 1. Modify the configuration file (all web environments) 2. restart ...

Posted by mostwantedunm on Thu, 19 Dec 2019 13:51:19 -0800

Shiro easy to use record

1. Custom token: defines a class inherited from: UsernamePasswordToken public class MyToken extend  UsernamePasswordToken 2. Login operation: Subject currentUser = SecurityUtils.getSubject(); currentUser.login(MyToken); 3. Custom password certificate: define a class, inherited from: authorizing realm public class UserRealm ...

Posted by NeoSsjin on Thu, 19 Dec 2019 13:16:34 -0800

websocket simple communication

Using websocket can realize full duplex communication between client and server, and the bottom layer is tcp protocol. Principle and concept please Baidu. . First, we use idea to build a simple web project, and use maven to manage project dependencies. Add spring spring MVN support capability for the project, and add pom depen ...

Posted by Takuma on Wed, 18 Dec 2019 07:51:20 -0800

Request and upload files, Session introduction, Restful API, Nodemon

By Jeskson Source: front end tavern of dada Request and upload files GET and POST requests const express = require('express'); const app = express(); app.set('view', 'pug'); app.get('/', function(req,res){ // Output response message req.send('hello') }); app.get('/users/:gender', function(req,res){ // Get route parameters let gender = ...

Posted by yodasan000 on Tue, 17 Dec 2019 21:59:38 -0800

JavaEE Foundation (05): Filters, listeners, interceptors, application details

Source code for this article: GitHub. Click here || GitEE. Click here 1. Listener listener 1. Introduction to concepts There are three components of JavaWeb: Servlet, Listener, Filter.A listener is a component that monitors the state changes of related objects in an application. 2. Event Source Object Refers to the object being listened on. ...

Posted by mudasir on Tue, 17 Dec 2019 15:57:52 -0800

Softmax for handwritten digit recognition (Tensorflow Implementation) - personal understanding

The function of softmax     for classification, the function of softmax is to calculate the probability that the sample belongs to each category from the sample value. For example, for handwritten numeral recognition, softmax model obtains the probability values of 0-9 from the given pixel value of handwritten image, and the sum ...

Posted by Afrojojo on Tue, 17 Dec 2019 08:46:15 -0800

ASP.Net MVC OA project notes

1.1.1 EF thread unique           EF instances are used in the data layer and data session layer, so only one EF instance (the only object in the thread) can be created in a request, and it is encapsulated as a factory class 1.1.2 to prevent cross reference and circular reference, this factory class should be written in the data layer DAL New cl ...

Posted by king arthur on Mon, 16 Dec 2019 09:08:00 -0800