Hello everyone,
I am developing a web application called DACE to manage extracurricular and complementary activities in a secondary school in Spain.
The application is built using Google Apps Script as the backend, HTML/CSS/JavaScript for the frontend, and Google Sheets as the main database. It also integrates Google Forms, Google Calendar, Google Drive, and email notifications.
The system currently includes different user roles (teachers, activity coordinators, school management, and administrators).
My main concern is whether this architecture can reliably support approximately 50 teachers using the application at the same time.
Current architecture:
- Google Apps Script handles requests from the web interface through
google.script.run. - Google Sheets stores activities, participants, approvals, and modifications.
LockServiceis used to protect critical operations against concurrent modifications.- The management interface checks for updates approximately every 10 seconds.
- Teachers’ interfaces check for updates approximately every 60 seconds.
- The application uses a revision mechanism to detect changes without always downloading all records.
- Some operations generate email notifications and update Calendar.
- Critical writes include persistence checks to confirm that modifications have actually been saved.
My questions are:
1. Simultaneous execution limits
According to Google’s documentation, Apps Script allows 30 simultaneous executions per user and 1,000 per script.
If the web application is deployed to execute as the script owner, would all requests from the 50 teachers count toward the same 30-execution limit?
Could this cause requests to fail during periods of high activity?
2. LockService and concurrent writes
Several users may submit activities or modify records simultaneously.
Would using LockService create a significant bottleneck?
What strategies would you recommend to prevent lost updates, race conditions, or excessive lock waiting times while maintaining data integrity?
3. Polling frequency
The application currently checks for updates every 10 seconds for administrators and every 60 seconds for teachers.
Could this polling mechanism become problematic with 50 connected users?
Would you recommend a different synchronization strategy while maintaining near-real-time updates?
4. Data integrity
One of my priorities is ensuring that operations are reliably persisted in Google Sheets.
For example, if two users modify the same activity, I want to prevent lost updates or inconsistencies between the interface and the spreadsheet.
What would be the recommended approach for handling concurrent modifications in Apps Script and Sheets?
5. Emails and automated processes
Some operations trigger email notifications, Calendar updates, and other automated actions.
How can I prevent these processes from failing, being duplicated, or experiencing excessive delays under concurrent load?
6. Scalability recommendations
For a school application with approximately 50 potential users, would you consider Google Apps Script and Google Sheets a reasonable architecture?
Or would you recommend moving some operations to another service or database?
I am particularly interested in improving performance and reliability without compromising the existing functionality.
The application is functioning correctly in individual tests, but I have not yet conducted comprehensive load testing with 50 simultaneous users.
Any technical guidance, architectural recommendations, or experience with similar applications would be greatly appreciated.
Thank you very much for your help!