当前位置:网站首页>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 .
边栏推荐
- 极化继电器
- HC32F4A0 时钟控制
- Pythia: Facebook's latest open source visual and language multitasking learning framework
- How to customize logging of.Net6.0
- Live broadcast software app development, uniapp scroll view hidden scroll bar
- 舌簧继电器
- High frequency relay
- Implementation of arbitrary code execution based on.Net dynamic compilation technology
- 8000 word explanation of OBSA principle and application practice
- [question 22] dungeons and Warriors (Beijing Institute of Technology / Beijing Institute of Technology / programming methods and practice / primary school)
猜你喜欢

什么是私域流量?
![[Marine Science] climate indices data set](/img/0f/f63b946b80fc2cf1d39a975c318abc.png)
[Marine Science] climate indices data set

阿里资深软件测试工程师推荐测试人员必学——安全测试入门介绍

CMOS switch (II)_ Parameter extraction

Drawing three coordinate (axis) diagram with MATLAB
![[question 22] dungeons and Warriors (Beijing Institute of Technology / Beijing Institute of Technology / programming methods and practice / primary school)](/img/64/70fa9f47836e07dd41d9e283e50adb.jpg)
[question 22] dungeons and Warriors (Beijing Institute of Technology / Beijing Institute of Technology / programming methods and practice / primary school)

Starfish OS X metabell strategic cooperation, metauniverse business ecosystem further

七大排序之直接插入排序

全国职业院校技能竞赛网络安全竞赛数据取证与分析思路分析

If demand splitting is as simple as cutting a cake | agile practice
随机推荐
Deepfake 换脸真假难辨,马斯克分克已伪装成功
Wireshark filter rule notes, with software
SQL注入 Less29(参数污染绕过WAF)
Interview question: what are the functions of fail safe mechanism and fail fast mechanism
Are Transformers Effective for Time Series Forecasting?|填坑
Nodejs npm常用指令总结
Uniswap集成sudoswap,能否拉开NFT流动性新序幕?
极化继电器
光藕继电器
云原生微服务第三章之Haproxy+Keepalived
CMOS传输门原理及应用
高频继电器
Memo mode - unity
九天后我们一起,聚焦音视频、探秘技术新发展
redis学习
Pytoch distributed training
[binary tree] count the number of good nodes in the binary tree
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
Window localStorage 属性和Location 对象