firevel / firestore-session-driver
Firestore session driver for Laravel app running inside Google App Engine.
Installs: 15 748
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- google/cloud-firestore: ^1.14
- grpc/grpc: ^1.30
This package is auto-updated.
Last update: 2024-11-27 00:52:00 UTC
README
Firestore session driver for Laravel and Firevel compatible with Google App Engine standard environment (PHP 7.3).
Installation
-
Install package with
composer require firevel/firestore-session-driver
-
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.