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

AIP-214: Adding clarification #44

Open
wants to merge 3 commits into
base: aip-214
Choose a base branch
from
Open

Conversation

rhamiltonsf
Copy link

@lukesneeringer, I would especially appreciate your review here, as I'm worried I might be stepping on toes.

I'm hoping the adjustments I made to the first paragraph will help clarify that this is about resource expiration. Moreso, I realized that we weren't just talking about communicating resource expiration, but also about setting it (i.e. If the client sets it, or even changes it).

Based on the other notes, I'm not sure if there is anything else that we should change in this AIP, as I thought we agreed (maybe I'm the only one who agreed, in my head) that the other discussions were edge cases that should be handled in an AIP extension. @jskeet You're thoughts on this topic would be appreciated as well.

Thanks!

Luke Sneeringer and others added 2 commits July 12, 2021 14:53
…rces that expire, and not about the TTL or expiration time of a cached message.
@rhamiltonsf rhamiltonsf requested a review from a team as a code owner November 2, 2021 16:52
@google-cla google-cla bot added the cla: yes label Nov 2, 2021
@rhamiltonsf
Copy link
Author

Oh, also, @lukesneeringer, I could not run this branch locally due to the .j2 file. A quick glance at a few other AIPs... is this the only AIP in this branch that is using jinja for the main file? I looked at the documentation, if you are aware of any quick answers, let me know. Otherwise, I can start digging into the generator if I need to.

Copy link

@jskeet jskeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely happy with the thrust of it - just a few wording aspects to consider.

Sometimes it is necessary for a resource to have a defined lifespan. At the end
of this lifespan, the resource expires but may still be accessible from the
server. This "expiration time" may be defined by a customer, or determined by
the server at the time of creation. Regardless of how the source of this time,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Regardless of how the source of this time" doesn't sound right. I'm not sure whether it should be "Regardless of the source of this time" or "Regardless of how this time is determined" (or similar).

The `expire_time` of a resource is not meant to replace the `Cache-Control`
header to communicate client-side or CDN caching. The lifespan of a resource
refers to the time it spends in a valid or actionable state, such as a
certificate or an auction.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit-pick, but that sounds like "certificate" and "auction" are actionable states. How about:

The lifespan of a resource refers to the time it spends in a valid or actionable state, such as a
how long a certificate is valid, or how long an auction is open for bidding.

refers to the time it spends in a valid or actionable state, such as a
certificate or an auction.

For some resources, a relative time offset may be more appropriate than a date.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use "instant in time" rather than "date" here, to avoid any ambiguity.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or "absolute time value".

Furthermore, the world understands the concept of a "time-to-live", often
abbreviated to TTL. However, the typical format of this field (an integer,
measured in seconds) results in a sub-par experience when using an
auto-generated client library.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good so far, but this paragraph doesn't quite feel like the end of the section. Is there an extra sentence we could use to close it?

Copy link

@mkistler mkistler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had only one small suggestion on top of Jon's comments.

These are hopefully easy fixes so I hope these can be done before merging.

refers to the time it spends in a valid or actionable state, such as a
certificate or an auction.

For some resources, a relative time offset may be more appropriate than a date.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or "absolute time value".

@rhamiltonsf
Copy link
Author

@jskeet, @mkistler

Thank you for the feedback! Take another look, I shuffled some things around a bit more and incorporated your feedback. I think this is a little more clear.

as an absolute time value or as a relative time offset. An absolute time value
stored in the `expire_time` field is preferred.

The `expire_time` of a resource is not intended to be a replacement for the `Cache-Control` header used to communicate client-side or CDN caching
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to rewrap this paragraph just to avoid the one line sticking out. (I know it's not visible when rendered.) Once we've work out what everything should say, of course...

The `expire_time` of a resource is not intended to be a replacement for the `Cache-Control` header used to communicate client-side or CDN caching
recommendations. The lifespan of a resource refers to the time it spends in a
valid or actionable state, such as how long a certificate is valid, or how long
an auction is active.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've now lost track of what we said in yesterday's meeting... I thought we were going to shift the examples to more of a soft-delete emphasis? I may well have misunderstood.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't, I pushed the updates right before the meeting where we made that clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants