当前位置:网站首页>Three possible scenarios for SAP Spartacus server-side rendering
Three possible scenarios for SAP Spartacus server-side rendering
2022-07-25 01:04:00 【Hua Weiyun】
Execute to code 166 That's ok , Give the control logic to expressEngine after , spot F8 after , The following three different colored code blocks may be called to :

- Green code block
explain timeout The specified time interval has expired .timeout:Time in milliseconds to wait for SSR rendering to happen, wait for SSR Timeout for rendering start , instead of SSR Rendered duration.
- Yellow code block
SSR The execution time is too long , Not finished yet . If exceeded maxRenderTime, Will forcibly release concurrency slot, Allow new requests to be SSR Respond to . however , For timeout SSR The service request , The resources requested have not been released , May cause memory leak . The default time is 5 minute .
- Red code block
So if I go here , also maxRenderTimeout Not for undefined, The explanation is normal SSR Render the successful execution of the request .

timeout
Time in milliseconds to wait for SSR rendering to happen.
It does not mean the actual duration spent by a SSR rendering request, but the range between the timestamp when SSR receives a render request and that request actually gets processed by SSR server.
wait for SSR When rendering occurs ( In Milliseconds ).
It doesn't mean SSR The actual duration of the rendering request , It is SSR The timestamp when the rendering request is received is the same as the time when the request was actually received SSR The range between server processing .
forcedSsrTimeout
Time in milliseconds to wait for rendering when SSR_ALWAYS render strategy is set for the request.
Default value is 60 seconds.
in file optimized-ssr-engine.ts, we set a timer with timeout value specified by line 130, this.getTimeout function call:
Set for request SSR_ALWAYS Time to wait for rendering while rendering policy ( In Milliseconds ).
The default value is 60 second .
In file optimization ssr-engine.ts in , We set a timer , The timeout value is determined by 130 Please specify ,this.getTimeout Function call :

The logic of final timeout value is determined as below:

if request rendering strategy is specifed explicitly by customers to ALWAYS_SSR, then the timeout is coming from forcedSsrTimeout option. If customers specify ALWAYS_SSR but forget to fill forcedSsrTimeout, then 60 seconds is used as default value.
In most cases customers will use RenderingStrategy.DEFAULT as default strategy. In this case, timeout value comes from option timeout.
In other words, forcedSsrTimeout only takes effect, if customer uses RenderingStrategy.ALWAYS_SSR.
If the customer explicitly specifies the request rendering strategy to ALWAYS_SSR, So the timeout comes from forcedSsrTimeout Options . If the customer specifies ALWAYS_SSR But forget to fill in forcedSsrTimeout, Then use 60 Seconds as the default .
in the majority of cases , Customers will use RenderingStrategy.DEFAULT As the default policy . under these circumstances , The timeout value comes from the option timeout .
let me put it another way , Only when used by customers RenderingStrategy.ALWAYS_SSR when ,forcedSsrTimeout Will take effect .
边栏推荐
- Method properties of ASP adodb.stream object
- 7.15 - daily question - 408
- 7.16 - daily question - 408
- C language word translation (to help understand the basic meaning of words) is updated from time to time
- Grafana connection tdengine reports an error 535
- C # "learning code snippet" - recursively obtain all files under the folder
- Batchinsert avoid inserting duplicate data ignor
- Install and configure php5-7 version under centos7.4
- Nacos hand to hand teaching [i] dynamic configuration of Nacos
- Tool use of rookie tutorial -- View subclass (implementation class) class diagram in idea
猜你喜欢

Specificity and five applications of Worthington alcohol dehydrogenase

Listing of China graphite: the market value is nearly HK $1.2 billion, achieving a zero breakthrough in the listing of Hegang private enterprises

Construction of Seata multilingual system

C # "learning code snippet" - recursively obtain all files under the folder
![Yolov7:oserror: [winerror 1455] the page file is too small to complete the final solution of the operation](/img/e1/51f750d355b248ab84e10f0e134271.png)
Yolov7:oserror: [winerror 1455] the page file is too small to complete the final solution of the operation

Tiktok iqiyi announced cooperation, long and short video handshake and reconciliation?

Tool use of rookie tutorial -- View subclass (implementation class) class diagram in idea

Human cell prosci 4-1BB ligand recombinant protein scheme

Install scoop and lux (formerly Annie)

Pychart exits pytest mode (run pytest in mode)
随机推荐
MySQL Basics (concepts, common instructions)
Where is the most formal account opening for futures trading? Capital security?
Digital signal processing synthesis matlab design of dual tone multi frequency dialing system
Method properties of ASP adodb.stream object
Batchinsert avoid inserting duplicate data ignor
Call camera photo album / upload / scan code in uniapp
unresolved external symbol [email protected] resolvent
WhatsApp web for usability testing of software testing technology
[development tutorial 10] crazy shell · open source Bluetooth smart health watch OTA image production and download technical documents
进程的几种状态
[C + + primer notes] Chapter 8 IO Library
Redis transaction learning
Detailed usage of iperf
Screenshot of Baidu map
Vscode installation and configuration
mysql初次安装的root密码是什么
Windows security hardening -- close unnecessary ports
Esp32 OLED lvgl displays common Chinese characters
Document the use of anti shake in packaged components and projects
JS convert pseudo array to array