Module

Best practices

In this module, you will learn best practices for using the Neo4j .NET Driver in production applications.

You will cover the following topics:

  • Opening async sessions with driver.AsyncSession()
  • Executing read and write transactions using ExecuteReadAsync() and ExecuteWriteAsync()
  • Implementing the unit of work pattern for grouping related queries
  • Understanding thread safety constraints on sessions vs the driver
  • Handling database errors with Neo4jException, ClientException, and TransientException
  • Using the IsRetriable property to determine whether an operation can be retried
Ready, let's go!