-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/pn 310 ttl for messages #7
Conversation
… feature/pn-310-ttl-for-messages
… feature/pn-310-ttl-for-messages
ID: id, | ||
Path: Path(meta[0]), | ||
UserID: meta[2], | ||
ApplicationID: meta[3], | ||
Expires: expiresTime, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field should be ExpirationTime not Expires.
… feature/pn-310-ttl-for-messages
// consider the message as processed and log the action | ||
// | ||
// RFC3339 format | ||
Expires *time.Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you using RFC3339 for Expires, but a unix timestamp for Time below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We require the message to also contain timezone information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for me asking, but why are you requiring the timezone information? Wouldn't it suffice to know the exact time the message expires? Which is given by a unix timestamp (since it is in UTC).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be correct, but we had some issues with timezone information checking on other project and would like for the producer to be able to fully control without any uncertainty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after seeing the comments, would prefer unix timestamp instead of a string format -> but in a another pull-request
No description provided.