prefetch
Service icon

PreFetch

Stable version 2.0.0 (Compatible with OutSystems 11)
Uploaded
 on 10 Sep (11 hours ago)
 by 
Evergreen IT
0.0
 (0 ratings)
prefetch

PreFetch

Documentation
2.0.0

This application has the ability to preload all modules on all front-ends.

There are two options:

  1. It runs in the background with a timer: Timer_PreFetchAllModules.
    1. The default schedule is daily at 05:00.
  2. It can be called as a REST endpoint: https://SERVER/PreFetch/rest/PreFetch/StartPreFetch as part of a CI/CD pipeline.

There are several configuration options:

  • Site Property "DetailedLogging": 
    • When turned on, the system will log a line before and preloading each module. 
      This can be useful to understand if all modules are prefetched as expected.
  • Site Property "IsFetchPerServer": 
    • When turned off, it uses the defined hostname from Administration > Environment Configuration.
    • When turned off, it uses the defined IP-addresses from Administration > Servers.
  • Site Property "ParameterName":
    • By default it's filled with "DefaultDNSName", which points to the Administration > Environment Configuration > Hostname. When this changes in the future or when you want to use a different parameter, this can be adjusted.



1.0.0

PreFetch


The best thing: To get you started, you don't need to do anything and it prefetches all your modules at 5:00 in the morning 😀


But when you want it to work for you?

  • Go to the PreFetch timer and adjust the Schedule.

But what else can you do?

  • More Detailed logs? Change the SiteProperty DetailedLogging to True.
  • Call the Timer from your CI/CD pipeline?
    • Change the SiteProperty APIToken to a new unique value (64 random characters will keep a brute-force attacker busy)
    • Call the REST interface from your CI/CD tool with the following
      • Url: https://{fill_in_your_domain}/PreFetch/rest/PreFetch/StartPreFetch
      • Header: API-token: {the unique token you have also entered in your site property}

Have fun and enjoy a quick initial load, every, day, of, the, year!