当前位置:网站首页>Chapter 8 using web sessions through rest
Chapter 8 using web sessions through rest
2022-07-27 22:28:00 【yaoxin521123】
List of articles
Chapter viii. adopt REST Use Web conversation (Sessions)
Enable REST Service to use Web conversation . This chapter describes why and how to do this .
Introduce
REST One of our goals is statelessness ; in other words , From a REST Call to the next , No knowledge is stored on the server . Span REST Call hold Web Conversation destroys the stateless paradigm , But you may want to keep Web There are two reasons for conversation :
- Minimize connection time —— If each
RESTCall to create a newWebconversation , It needs to establish a new session on the server . By reservationWebconversation ,RESTCall can connect faster . - Span
RESTCall retain data — In some cases , May need to crossRESTCall to reserve data to effectively meet business needs .
Enable REST Service to use Web conversation
To enable multiple REST The call uses a single Web conversation , Please add UseSession Parameter set to 1. for example :
Parameter UseSession As Integer = 1;
Then recompile this class
If UseSession by 1, IRIS Across multiple REST Service call keeps one Web conversation . If the parameter is 0( The default value is ), IRIS For each REST The service invocation uses a new Web conversation .
Be careful : When recompiling the specification class ,UseSession Parameters are copied to the scheduling class , This will lead to actual changes in behavior .
边栏推荐
- 一种比读写锁更快的锁,还不赶紧认识一下
- 【二叉树】统计二叉树中好节点的数目
- An2021 software installation and basic operation (new file / export)
- Deepfake's face is hard to distinguish between true and false, and musk Fenke has disguised successfully
- 【图解】三次握手,四次挥手 —— 用心看这一篇就够了
- 饿了么input输入框设置type=‘number‘时,去掉后面的上下按钮
- The execution process, orphan process and zombie process of fork() function
- Optocoupler relay
- [question 24] logic closed loop (Beijing Institute of Technology / Beijing University of Technology / programming methods and practice / primary school)
- 项目分析(哪些是it培训给不了)
猜你喜欢

Principle and application of CMOS transmission gate

【无标题】

Tab bar (addeventlistener and onclick practice, used with bind method, exponential growth to listen for events)

Starrocks community structure comes out, waiting for you to upgrade!

Behind every piece of information you collect, you can't live without TA

高频继电器
![[untitled]](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[untitled]

JVM garbage collection garbage collector and common combination parameters

ThreadLocal principle and source code analysis (click in step by step, don't recite, learn ideas)

Project analysis (from technology to project and product)
随机推荐
cache学习
7行代码让B站崩溃3小时
It's too voluminous. A company has completely opened its core system (smart system) that has been operating for many years
redis学习
Project analysis (what is it training that can't be given)
Deploy dolphin scheduler high availability cluster based on rainbow
fork()函数的执行过程、孤儿进程和僵尸进程
项目管理工具禅道
Interview question: talk about your understanding of AQS
The source code of live broadcast app system, and the rotation diagram of upper and lower layers
Nine days later, we are together to focus on the new development of audio and video and mystery technology
The purpose of DDD to divide domains, sub domains, core domains, and support domains
High frequency relay
七大排序之直接插入排序
CMOS开关(二)_参数提取
[question 24] logic closed loop (Beijing Institute of Technology / Beijing University of Technology / programming methods and practice / primary school)
Drawing three coordinate (axis) diagram with MATLAB
直播app系统源码,上下叠层样式的轮播图
Leetcode-152- product maximum subarray
Encapsulate an array into a class