Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

Polling vs Frequent Searching

help

  • Please log in to reply
6 replies to this topic

#1 AndyDent

AndyDent

  • PipPipPip
  • Title: Bushwhacker
  • Group: Members
  • 133 posts

Posted 18 June 2012 - 11:21 PM

In the Watching for Changes page it says First, don't poll more than once every 15 minutes. We keep track of calls to findNotes, and if we notice that your app is polling more frequently, we'll have to temporarily revoke your API key.

How is this defined? Is it just calls to findNotes?

My concern is that my app encourages users to navigate through their Evernote collection with what will look like a series of searches, as they explore related notes. It will probably be mostly FindNotesMetadata and getNoteSearchText calls.

How do I make that not look like someone being overly agressive with their polling? Am I being paranoid?

I'm also planning to provide significant offline support using cached data but that may not be feasible pre-compe*****ion and also may not be what users want, especially sitting on an iDevice!

thanks

Andy

#2 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 407 posts

Posted 19 June 2012 - 04:05 PM

You don't need to worry about that. In your case, we would be notified if your application was used by multiple users 24 / 7. If the calls are triggered by user actions, you are not actually polling.

#3 berryboy

berryboy

  • Pip
  • Title: Member
  • Group: Members
  • 42 posts

Posted 20 June 2012 - 12:49 PM

Hi Julien,

I have asked you a question about using NoteStore.getSyncState for polling here.
http://discussion.ev...te-for-polling/

I'm interested in your answer about the case that the call is trigger by user actions.

So, what if I increase the polling rate to when the user are online.
Then, reduce it back to >15 minute when he/she go offline.

#4 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 407 posts

Posted 20 June 2012 - 04:15 PM

By definition, polling is an automated action that happens in the background and isn't linked to a user's interaction with an app (checking for new notes for example).

@berryboy how often would you like to poll when the user is active on your application?

#5 swingkid

swingkid

  • Pip
  • Title: Member
  • Group: Members
  • 5 posts

Posted 21 June 2012 - 05:13 AM

By definition, polling is an automated action that happens in the background and isn't linked to a user's interaction with an app (checking for new notes for example).

@berryboy how often would you like to poll when the user is active on your application?


What about periodically polling for Linked Notebooks?
I'd like to provide users a near realtime experience when someone shares a notebook to someone and that someone or rather a mobile app given authorization gets notified
that there is a shared notebook you should link to.
From reading the Sharing Notes topic on Cloud Api, it appears if I can't poll say every minute or so to checked for linked notebooks, I'd have to come up with an out of band solution to for my app to detect someone is sharing a notebook with me, correct? Or wait 15 minutes.

Also, hating to hijack this thread, but on a related note (pun not intended).

is this really the minimum info needed to share a notebook? for the e-mail address, though, that needs to be the email address registered
with Evernote, correct?
If you replace that with the evernote username (of the person you are sharing the notebook to), do you still need the email address? I guess my thought process is, people have many email addresses, who knows which one they choose?
do you have a email address to evernote userid lookup service?

Here is what is listed in the api, and it says a lot of things are optional.
http://dev.evernote...._SharedNotebook
(Plus it doesn't define what the shareKey is and how that works. is it autogenerated by EN when a notebook is shared? Does a mobile android client need to keep track of it?
Does it need to pass it to the mobile app that receives the shared notebook that has to create a linked notebook?

Don't you need at least the username (I at first thought you would need userId, but that's not in the struct) so the linkednotebook can be "attached" the recipeints account for it to be programmatically discovered and associated linkednotebook be created?

This is what the example says here (copy pasted for convenience)
http://dev.evernote....ers/Sharing.php

sharedNotebook = new edam_type_SharedNotebook();

// The email address of the person who the notebook is being shared with
$sharedNotebook->email = "recipient@email.com";

// Can the recipient browse the notebook without logging into Evernote?
$sharedNotebook->requireLogin = true;

// Is the recipient allowed to create new notes and modify existign notes in the notebook?
$sharedNotebook->notebookModifiable = false;

// The GUID of the Notebook that is being shared
$sharedNotebook->notebookGuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";

$sharedNotebook = $noteStore->createSharedNotebook($accessToken, $sharedNotebook);

#6 Chris Gagin

Chris Gagin

  • Pip
  • Title: Member
  • Group: Members
  • 2 posts

Posted 15 November 2012 - 11:27 AM

Hi, we are building an Evernote integration with our application in order to provide our users with the list of their Evernote notes, when they ask for it.

It's not fully clear, if the API calls performed for each user when they ask to list their notes will be considered as a polling and undergo the 15 minutes limitation, or not.

In other words, can each user ask multiple times to list its notes (even in a 15 minutes timeframe), without being considered as a polling?

thanks in advance for your answers.

Chris

#7 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 407 posts

Posted 15 November 2012 - 11:55 PM

If the action of searching is triggered by an action coming from the user then that is not considered as polling. I would however consider caching for performance improvement if for example you are doing the same search in a very short period of time.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote