Commit Graph

  • 995cbfd035 Add @nestjs/throttler 6.4.0 to yarn.lock main jos3duardo 2025-08-17 23:41:51 -04:00
  • 40d1ce9fcf Move img.png to report directory and update README jos3duardo 2025-08-17 23:41:45 -04:00
  • 808b509821 Add report output files (HTML, JSON, image) jos3duardo 2025-08-17 23:41:36 -04:00
  • e356760421 feat: previa img report jos3duardo 2025-08-17 22:36:34 -04:00
  • 10487d3679 Merge branch 'main' of github.com:jos3duardo/rinha-backend-2025 jos3duardo 2025-08-17 22:33:07 -04:00
  • 31609016e9 Update README with detailed project overview and architecture jos3duardo 2025-08-17 22:32:23 -04:00
  • 53c5d2ac5b feat: ajusta limitis jos3duardo 2025-08-17 22:32:13 -04:00
  • 1f0847569d feat: adiciona payment processor jos3duardo 2025-08-17 22:31:55 -04:00
  • c7cd628caa
    Merge branch 'master' into main José Eduardo 2025-08-17 19:35:42 -04:00
  • 1047c9fc26 Update memory limits for web and database services jos3duardo 2025-08-17 19:18:11 -04:00
  • 92f48cbc30 Adjust memory limits for app, redis, and database services jos3duardo 2025-08-17 18:38:36 -04:00
  • e24a80e4f3 Reduce payment processor concurrency to 5 jos3duardo 2025-08-17 18:38:21 -04:00
  • 509f1be564 Increase database connection pool max to 10 jos3duardo 2025-08-17 18:38:06 -04:00
  • 8d829ddf36 Add index on payments.correlation_id jos3duardo 2025-08-17 18:37:56 -04:00
  • 55fece0233 Update memory limits for several services in docker-compose jos3duardo 2025-08-17 15:49:32 -04:00
  • 0b282fd471 Increase payment processor concurrency to 10 jos3duardo 2025-08-17 15:49:27 -04:00
  • 5ed5677405 Update resource limits and restart policy in compose file jos3duardo 2025-08-17 15:23:42 -04:00
  • f55ea5b731 Reduce DB pool size, payment concurrency, and job attempts jos3duardo 2025-08-17 15:23:35 -04:00
  • a929d89fb3 otimizado para funcionar sem limites de cpu e ram jos3duardo 2025-08-17 14:55:53 -04:00
  • e2c7dd647d Increase payment processor request timeout to 2500ms jos3duardo 2025-08-17 04:31:12 -04:00
  • fe06faf0e8 Remove unused repository and related code from fallback processor jos3duardo 2025-08-17 04:31:07 -04:00
  • f229d31398 Set max database connections to 5 in config jos3duardo 2025-08-17 04:31:01 -04:00
  • c98379f13f Add @nestjs/throttler dependency jos3duardo 2025-08-17 04:30:56 -04:00
  • 7e9251be64 Increase worker connections and update upstream settings jos3duardo 2025-08-17 04:30:51 -04:00
  • bb80471b2a Update payments table constraints and remove indexes jos3duardo 2025-08-17 04:30:45 -04:00
  • 95af8deae8 Use query to insert payment and handle conflicts jos3duardo 2025-08-17 04:30:39 -04:00
  • b7ebc29af4 Increase payment processor concurrency and add error logging jos3duardo 2025-08-17 04:30:34 -04:00
  • 8ab96b8292 Handle duplicate payment and log processor errors jos3duardo 2025-08-17 04:30:30 -04:00
  • 7d1d01310a Increase payment job attempts and backoff delay jos3duardo 2025-08-17 04:30:26 -04:00
  • ac1dcc2a6b Add api3 service and update resource limits and restarts jos3duardo 2025-08-17 04:30:20 -04:00
  • af8c1260d5 Remove hostname entries from docker-compose.yml for services jos3duardo 2025-08-12 09:14:30 -04:00
  • 4ee047fb9b Refactor Docker configuration and SQL initialization for improved resource management and table structure jos3duardo 2025-08-12 09:09:53 -04:00
  • 5d268e8a5d Refactor payment processing services to use CreatePaymentDto and simplify job handling jos3duardo 2025-08-12 09:09:43 -04:00
  • 96b1e8cd80 Refactor payment processing services to use CreatePaymentDto and simplify job handling jos3duardo 2025-08-12 09:09:37 -04:00
  • 434f03f6c6 Refactor payment processors to use CreatePaymentDto and streamline payment execution logic jos3duardo 2025-08-12 09:09:31 -04:00
  • 3c2c43106a Refactor payment entity to use correlationId as primary key and remove unused fields jos3duardo 2025-08-12 09:09:25 -04:00
  • 4c8b331be0 Refactor database module to disable synchronization in production jos3duardo 2025-08-12 09:09:19 -04:00
  • d03456bd6a Update docker-compose configuration for payment service images and resource limits jos3duardo 2025-08-11 23:57:26 -04:00
  • 44d21423db Add partial results JSON file with payment processing metrics and descriptions jos3duardo 2025-08-11 23:54:35 -04:00
  • 8dde9b96e3 Refactor docker-compose.yml to update resource limits for services jos3duardo 2025-08-11 23:54:14 -04:00
  • ddaa57d96d Refactor app module to remove unused HealthModule import jos3duardo 2025-08-11 23:54:09 -04:00
  • 68fc4c2f99 Refactor payments module to remove unused imports and streamline dependencies jos3duardo 2025-08-11 23:54:04 -04:00
  • 7773a4f45e Refactor payment processing to utilize PaymentJobData and streamline execution logic jos3duardo 2025-08-11 23:53:58 -04:00
  • d28c9897da Refactor payment storage to remove unnecessary status assignment and include creation timestamp jos3duardo 2025-08-11 23:53:53 -04:00
  • bad88f2016 Refactor payment execution to use PaymentJobData for improved data handling jos3duardo 2025-08-11 23:53:45 -04:00
  • 2ab9284c85 Refactor payment processors to improve concurrency and streamline payment execution jos3duardo 2025-08-11 23:53:12 -04:00
  • 7d5827871d Refactor payment job handling to simplify retry logic and update job parameters jos3duardo 2025-08-11 23:53:04 -04:00
  • b2273181b9 Refactor payment job handling to simplify retry logic and update job parameters jos3duardo 2025-08-11 23:52:50 -04:00
  • 717046120c Update README.md to reflect project name and features jos3duardo 2025-08-11 23:52:39 -04:00
  • b233069ffb Update README.md to reflect project name and features jos3duardo 2025-08-11 13:38:24 -04:00
  • 0bea9a93d8 Add initial setup guide, test scripts, and configuration files jos3duardo 2025-08-11 13:38:15 -04:00
  • 4e5350faab Update docker-compose configuration for resource limits and image usage jos3duardo 2025-08-11 13:14:48 -04:00
  • 3bad475df6 Add attempts column to payment table for tracking retries jos3duardo 2025-08-10 21:07:34 -04:00
  • 471fb2328d Reduce test payment iterations from 1000 to 100 for performance improvement jos3duardo 2025-08-10 21:07:26 -04:00
  • f0c7df6f6e Simplify nginx configuration by removing unused directives and reducing complexity jos3duardo 2025-08-10 21:07:16 -04:00
  • 2bb71ef5a1 Update payment status and increment attempts on processing error jos3duardo 2025-08-10 21:06:27 -04:00
  • 397fc866ec Refactor payment processor type checks to use enum values jos3duardo 2025-08-10 21:06:11 -04:00
  • 474dc1af56 Remove logging for payment processor error responses jos3duardo 2025-08-10 21:03:52 -04:00
  • 43391fc938 Remove logging for payment processing attempts in payment processor jos3duardo 2025-08-10 21:03:20 -04:00
  • 4d061dab3e Add attempts column to payment entity for tracking payment attempts jos3duardo 2025-08-10 21:03:14 -04:00
  • 012563f252 Filter payments by attempts in PaymentsCron service jos3duardo 2025-08-10 21:03:07 -04:00
  • 081cbb3410 Reduce health check timeout and remove logging for health check status jos3duardo 2025-08-10 21:02:58 -04:00
  • ebe84fc757 Add error handling for payment processor response in MakePaymentToProcessorService jos3duardo 2025-08-10 01:44:10 -04:00
  • 6b5bdf1448 Add PaymentsCron service to handle periodic payment processing jos3duardo 2025-08-10 00:56:05 -04:00
  • d0d58e220d Refactor PaymentFallbackProcessor to utilize MakePaymentToProcessorService for payment execution jos3duardo 2025-08-10 00:56:01 -04:00
  • f0c95308b0 Refactor PaymentDefaultProcessor to use MakePaymentToProcessorService for payment processing jos3duardo 2025-08-10 00:55:56 -04:00
  • 507c774b23 Add PaymentsSummaryService and MakePaymentToProcessorService to PaymentsModule jos3duardo 2025-08-10 00:55:48 -04:00
  • 7f9b03aafa Add PaymentsSummary endpoint to PaymentsController for retrieving payment summaries jos3duardo 2025-08-10 00:55:43 -04:00
  • 1ebfc609f7 Refactor ProcessPaymentService to remove RetryPaymentService dependency and streamline payment processing logic jos3duardo 2025-08-10 00:55:37 -04:00
  • ebf16c1c24 Refactor ProcessPaymentService to remove RetryPaymentService dependency and streamline payment processing logic jos3duardo 2025-08-10 00:55:31 -04:00
  • a961414e93 Add PaymentsSummaryService for summarizing payment data jos3duardo 2025-08-10 00:55:28 -04:00
  • b5d6b4b605 Add blank line for improved readability in docker-compose.yml jos3duardo 2025-08-10 00:55:17 -04:00
  • 051fabf5bb Add test-payments.sh script for simulating payment requests jos3duardo 2025-08-10 00:55:12 -04:00
  • 439ce1bff3 Add MakePaymentToProcessorService for handling payment processing jos3duardo 2025-08-10 00:55:09 -04:00
  • 2bd2d6a5cc Add @nestjs/schedule package and update dependencies in package.json and yarn.lock jos3duardo 2025-08-09 22:37:34 -04:00
  • 2ff84a8450 Add HealthModule to the application module jos3duardo 2025-08-09 22:37:29 -04:00
  • c9e5fa8c2c Add status and error_message fields to payment_processor table jos3duardo 2025-08-09 22:37:17 -04:00
  • 31edb2cc37 Update default payment processor URL in configuration jos3duardo 2025-08-09 22:37:11 -04:00
  • 6484d0afb4 Add QueueService for managing payment jobs in the payment processing queue jos3duardo 2025-08-09 22:36:59 -04:00
  • 1116181d8c Refactor QueueModule to use PAYMENT_QUEUE constant and update Redis connection settings jos3duardo 2025-08-09 22:36:55 -04:00
  • f692877e07 Add PAYMENT_QUEUE constant for payment processing queue jos3duardo 2025-08-09 22:36:52 -04:00
  • f6b560bf86 Refactor Payments module structure and update controller to use new service paths jos3duardo 2025-08-09 22:36:46 -04:00
  • 8d6a8f75ea Add PaymentsService, ProcessPaymentService, and RetryPaymentService for payment processing logic jos3duardo 2025-08-09 22:36:37 -04:00
  • 04b874a3a2 Refactor import paths for PaymentsService to improve module organization jos3duardo 2025-08-09 22:36:31 -04:00
  • fefa4e2995 Add payment processors for handling payment processing logic jos3duardo 2025-08-09 22:36:26 -04:00
  • 825cdca4a6 Add enums for PaymentStatus and ProcessorType jos3duardo 2025-08-09 22:36:19 -04:00
  • b6ef03c54d Add status and errorMessage fields to Payment entity jos3duardo 2025-08-09 22:36:13 -04:00
  • f7f17a07bd Refactor CreatePaymentDto for consistent formatting jos3duardo 2025-08-09 22:36:07 -04:00
  • aa6860f5d6 Add HealthModule to encapsulate health-related services and dependencies jos3duardo 2025-08-09 22:35:59 -04:00
  • 198563f330 Add unit tests for HealthService jos3duardo 2025-08-09 22:35:52 -04:00
  • 1e629442c3 Add HealthService to perform health checks on payment processors jos3duardo 2025-08-09 22:35:45 -04:00
  • 09e57026fd Add ServiceStatusEnum to define service status states jos3duardo 2025-08-09 22:35:39 -04:00
  • c50f9c5c4e Add entrypoint script and update docker-compose for service configuration jos3duardo 2025-08-03 21:19:59 -04:00
  • 62f32b830a Add payment module with DTOs, entity, controller, and service jos3duardo 2025-08-03 20:58:56 -04:00
  • 4284ecfca4 Add payment module with DTOs, entity, controller, and service jos3duardo 2025-08-03 20:58:50 -04:00
  • 48c9a6a016 Add configuration, database, and queue modules for application setup jos3duardo 2025-08-03 20:58:42 -04:00
  • a99d78c4df Initialize NestJS application with core modules, configuration, and basic setup jos3duardo 2025-08-03 20:58:31 -04:00
  • 1d2fdd470b Add unit and e2e tests for PaymentsController, PaymentsService, and AppController jos3duardo 2025-08-03 20:58:02 -04:00
  • 86798bfd42 Add initial Docker setup with API services, database, and Nginx configuration jos3duardo 2025-08-03 20:57:38 -04:00