Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GeorgeKala's avatar

Optimizing Employee Inactivation and Card Deletion for 2500+ Employees in a Biometric Management Project in Laravel

I’m working on a biometric project where I manage around 2500 employees. Each employee has an expiry_datetime, and when that date arrives, the employee should automatically be marked as inactive and their associated cards should be deleted via an external API (a REST API for access control).

The key challenge I’m facing is ensuring this process runs efficiently and doesn’t consume too many system resources or impact performance, especially considering the volume of employees. I’m thinking about using queued jobs to handle each employee’s inactivation and card deletion when their expiry datetime arrives. This way, tasks can run in the background without slowing down the system.

However, I’m looking for some advice on the best practices for handling a large-scale task like this. Specifically, I’d love to get feedback on:

How to make the process more resource-efficient. Whether queued jobs are the best approach for this scenario, or if there’s a better alternative. How to handle API interactions more effectively, especially with a large number of requests. If anyone has experience managing large batches of data or working with APIs in a similar context, your insights would be incredibly helpful!

Thanks in advance!

0 likes
1 reply

Please or to participate in this conversation.