当前位置:网站首页>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 .
边栏推荐
- 每条你收藏的资讯背后,都离不开TA
- Deepfake 换脸真假难辨,马斯克分克已伪装成功
- 一种比读写锁更快的锁,还不赶紧认识一下
- 什么是私域流量?
- Leetcode-538- convert binary search tree to cumulative tree
- 只会Excel想做图表可视化,让数据动起来?可以,快来围观啦(附大量模板下载)
- C language output teaching calendar
- Chapter 3 business function development (choose to export market activities, Apache POI)
- Encapsulate an array into a class
- matlab 绘制三坐标(轴)图
猜你喜欢

基于简化的评分卡、Smote采样和随机森林的信贷违约预测

七大排序之希尔排序

How to use Fiddler for weak network testing

舌簧继电器

Relationship between DBM and VPP and Vpeak

Inventory Poka ecological potential project | cross chain characteristics to promote the prosperity of multi track

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

matlab 绘制三坐标(轴)图

Solid state relay

How to customize logging of.Net6.0
随机推荐
SSM整合流程
一种比读写锁更快的锁,还不赶紧认识一下
【StoneDB故障诊断】系统资源瓶颈诊断
Starrocks community structure comes out, waiting for you to upgrade!
[C language] high precision addition, subtraction, multiplication and division template
Huaneng Fujian company and Huawei digital energy deepen strategic cooperation and jointly build a low-carbon smart county
Memo mode - unity
Leetcode-199-right view of binary tree
华能福建公司与华为数字能源深化战略合作,共建低碳智能县域
时间继电器
Multi tenant SaaS cloud platform framework
Vs2019 release mode debugging: this expression has side effects and will not be evaluated.
Deepfake's face is hard to distinguish between true and false, and musk Fenke has disguised successfully
C language output teaching calendar
[OBS] P B frame loss threshold buffer_ duration_ usec
Is it safe to open an account online now? Then choose which securities to open a securities account
jumpserver学习
温度继电器
mmu学习总结
First knowledge of esp8266 (I) -- access point and wireless terminal mode