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

About Agent Persistence #194

Open
ianido opened this issue Jul 19, 2023 · 5 comments
Open

About Agent Persistence #194

ianido opened this issue Jul 19, 2023 · 5 comments

Comments

@ianido
Copy link

ianido commented Jul 19, 2023

Hello, I started using your package to connect to a centralized Hangfire Server by http, however I do not understand the concept of Agent and their Persistence (mssql, redis and mysql), Why Agent needs direct access to the hangfire database? What is the difference between having an agent and simply using the hangfire clases?

@yuzd
Copy link
Owner

yuzd commented Jul 19, 2023

Agent Can be disassembled into different applications according to business lines
In this way, different business lines can write jobs in their own applications

Why Agent needs direct access to the hangfire database?
It is because the status and execution log of the job need to be synchronized to hangfireserver
For example, unified management in hangfire dashboard

By the way
It may be better to switch to communication between agent and hangfireserver
How do you think?

@ianido
Copy link
Author

ianido commented Jul 20, 2023

Thank you for your answer, I am still not sure what is the difference in between having an Agent in a windows console and having a windows console with hangfire server, I can have as many servers as I want, I can define a server looking at specific queue as well.

Not sure which scenario is covered by Agents specifically than a regular hangfire server app can't cover?

@yuzd
Copy link
Owner

yuzd commented Apr 18, 2024

From a design perspective, I think the Hangfire.httpjob,agent interacting directly with storage is a bad design,
and it would be better to change it to interact with hangfireserver.
At first, I wanted to make the agent's status and logs unified and manageable in hangfire.dashbord.
At that time, I just designed it like this for convenience.

@ianido
Copy link
Author

ianido commented Apr 18, 2024

100% agrees

@maxiar
Copy link

maxiar commented Aug 15, 2024

Hi! any Plan to improbe this to isolate the hangfire database from agents ? .. :) I can help us if you think any design..

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

No branches or pull requests

3 participants