firevel/firestore-session-driver

Firestore session driver for Laravel app running inside Google App Engine.

1.0.2 2020-08-26 15:34 UTC

This package is auto-updated.

Last update: 2024-03-26 23:26:27 UTC


README

Firestore session driver for Laravel and Firevel compatible with Google App Engine standard environment (PHP 7.3).

Installation

  1. Install package with composer require firevel/firestore-session-driver

  2. Update your app.yaml with:

env_variables:
  SESSION_DRIVER: firestore

Limitations

Check Firestore Quotas and Limits.

High availability applications

If you like to use this driver in high load applications, watch garbage collection that can be a bottleneck.

Modify config.sessions.lottery value to set how often garbage collection should happen, and app.yaml SESSION_GC_BATCH_SIZE to define garbage collection batch size.

If extremal cases do manual garbage collection from cron job, or shift to cookie driver.