O'Reilly logo

RavenDB High Performance by Brian Ritchie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Server-side tasks

Deploying tasks that run off cycle from the document process can also be used to extend the RavenDB server. These tasks can be used for various administrative purposes or to add entirely new functionalities to the server. The tasks are as follows:

TASK TYPE

DESCRIPTION

INTERFACE/CLASS

Server startup

Executes when the server first starts.

IServerStartupTask

Database initialization

Executes when a database is initialized. Use when you need something to run once per database. Use AbstractBackgroundTask for recurring execution.

IStartupTask

Background periodic task

Allows tasks to run on a periodic basis. The HandleWork method is executed whenever there is a change on the server such as a document being added or an ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required