User Authentication and Authorization of Micro Services
[TOC]
Stateful VS Stateless
Almost all applications need to be authenticated and authorized. For example, user login with account password is an authentication process. After successful login, the system will allow users to access related resources under their account, which is called authorization.The complication is that users have the conc ...
Posted by eyekkon on Thu, 05 Sep 2019 19:12:12 +0200
HTTPS request Received fatal alert: handshake_failure exception - reason different
Today I encountered a Received fatal alert: handshake_failure problem in my project. The direct translation just failed. To be honest, this is the first time I have encountered this problem.In forums, in the sea of technical blogs, I still haven' ...
Posted by robotman321 on Thu, 05 Sep 2019 05:36:19 +0200
Django Intermediate Key and Context Processor
Middleware and Context Processor
Django Middleware
It is a lightweight, low-level "plug-in" system that can intervene in Django's request and response processing and modify Django's input or output.
Activating Middleware
It needs to b ...
Posted by Satabi2 on Wed, 04 Sep 2019 14:48:06 +0200
Redis Learning Notes - Lua Scripts - Using Lua Scripts
Reference resources:
http://www.redis.cn/commands/eval.html
https://www.runoob.com/redis/redis-scripting.html
Redis has supported Lua scripting since version 2.6.0. By embedding the Lua environment in the server, Redis clients can use Lua scripts t ...
Posted by harnacks on Mon, 02 Sep 2019 04:10:05 +0200
python+sqlalchemy operation database
1. Introducing dependencies
#Introducing sql-dependent Akmi
import sqlalchemy
#Introducing various data types
from sqlalchemy import Column, Integer, String, ForeignKey, UniqueConstraint, Index,CHAR,VARCHAR,Date
#Create a database connection
from sql ...
Posted by linuxdoniv on Fri, 30 Aug 2019 10:41:23 +0200
SpringBoot Integrated WebSocket+Socketjs Heart Reconnection Implementation
I. Basic concepts
1. Unicast: point-to-point, private chat
2. Multicast, also known as Multicast (Special Crowds): Multi-person chat, publish and subscribe
3. Broadcast (everyone): Game announcements, publishing and subscribing
2. Springboot Inte ...
Posted by JsusSalv on Fri, 30 Aug 2019 07:35:47 +0200
Brief Analysis of Linux File Log File Explanation
Functions of logs
Used to record all kinds of events occurring in the running of system and program
Reading logs helps to diagnose and solve system failures
Classification of log files
Kernel and System Log:It is managed by syslog system service, and the log format is basically similar.
User logs:Record system user login and exit informa ...
Posted by trazan on Wed, 28 Aug 2019 15:14:10 +0200
nginx seven-tier load balancing
[tcp]
nginx seven-tier load balancing
Overview of nginx load balancing
When our Web servers are directly user-oriented, they often carry a large number of concurrent requests. It is difficult for a single server to load. I use multiple Web servers to form a cluster. The front-end uses Nginx load balancing to distribute requests to our back-end ...
Posted by mingmangat on Tue, 27 Aug 2019 15:43:34 +0200
Cookie and Session in Node
1,Cookie
HTTP is a stateless protocol. Example: Open the home page of a domain name, and then open other pages of the domain name, the server can not identify visitors. That is, the same browser visits the same website, each visit has nothing to do with it.
Cookie's principle is that after the client browser first accesses the server, the ser ...
Posted by slipperyfish on Mon, 26 Aug 2019 17:40:04 +0200
Programming with Chrome takes a real risk
truth_or_dare
Gif HD source address: https://user-images.githubusercontent.com/15868458/63646763-8ab2ed00-c74a-11e9-81e8-e224a0ef375c.gif
Truth Adventure Online Address: https://zhaoolee.com/ProgrammingWithChrome/zhaoolee_true_or_dare/
True Talk Big Adventure is a simple and easy game, the specific rules are usually 2 peop ...
Posted by just_nobody on Sun, 25 Aug 2019 18:13:17 +0200