Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis and Flatbuffers Integration for Event Handling #10

Merged
merged 10 commits into from
Oct 3, 2024
Merged

Conversation

arkavo-com
Copy link
Contributor

@arkavo-com arkavo-com commented Sep 28, 2024

Redis Integration:

• Integrated Redis as a backend for event handling to improve performance and scalability.
• Updated ServerState and ServerSettings with Redis configurations.
• Enhanced logging for better insight into event handling processes.
• Updated the README with Redis installation and configuration instructions.

Flatbuffers Integration:

• Integrated Flatbuffers for efficient event serialization and deserialization.
• Added a new schemas module for Flatbuffers schema files.
• Updated dependencies to include Flatbuffers.
• Updated the README with steps for Flatbuffers installation and usage.

Other improvements include enhanced log messages and updates to documentation.

Integrated Redis for event handling and added relevant configurations in `ServerState` and `ServerSettings`. Updated README with installation and configuration instructions for Redis and improved some log messages.
Integrated Flatbuffers for event serialization and deserialization in the application. Added new schemas module and relevant dependencies, along with updates to the README for Flatbuffers installation and usage.
Reformatted the FlatBuffers schema for better readability and consistency. Adjusted indentation and spacing to align with recommended coding standards.
Reformatted async function calls in `main.rs` for better readability and consistency. Standardized indentation in `schemas/event_generated.rs` for better code quality and maintainability.
Refactor event handling to support multiple event types, including UserEvent and CacheEvent. Extend the event schema with additional action types and a new CacheEvent structure to better manage event data.
Convert `event_data` to a byte vector and improve logging for event retrieval and caching process. This ensures more robust type handling for Redis data and adds detailed information about target payloads and their sizes.
Converted Redis commands to use explicit type parameters for better readability and type safety. This change ensures the correct types are enforced at compile-time, reducing runtime errors and improving code clarity.
Break long Redis `set_ex` call across multiple lines for readability in `src/bin/main.rs`. Introduce 'unused' enum variants and update maximum values to reflect the new actions and statuses in `src/bin/schemas/event_generated.rs`. This change improves the organization and handling of enums by marking unused slots explicitly.
Simplify the TLS acceptor setup by introducing custom options, such as setting the minimum TLS version to 1.2. Additionally, restore the original import order for consistency and add validation to check for zero-sized data from Redis.
Refactor the TLS setup to streamline the function call and simplify the Redis cache logic by combining nested conditions. Clean up redundant lifetime annotations in `event_generated.rs` to improve code readability.
Copy link

sonarqubecloud bot commented Oct 3, 2024

@arkavo-com arkavo-com merged commit b2cd419 into main Oct 3, 2024
5 checks passed
@arkavo-com arkavo-com deleted the feature/redis branch October 3, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant