Click here to Skip to main content
15,876,943 members
Home / Discussions / C#
   

C#

 
AnswerRe: Iterate through data table Pin
Pete O'Hanlon24-Feb-15 2:03
mvePete O'Hanlon24-Feb-15 2:03 
Questionbest pattern queue Pin
vahidbakhtiary23-Feb-15 21:29
vahidbakhtiary23-Feb-15 21:29 
AnswerRe: best pattern queue Pin
OriginalGriff23-Feb-15 21:40
mveOriginalGriff23-Feb-15 21:40 
AnswerRe: best pattern queue Pin
Pete O'Hanlon23-Feb-15 21:45
mvePete O'Hanlon23-Feb-15 21:45 
AnswerRe: best pattern queue Pin
vahidbakhtiary23-Feb-15 23:07
vahidbakhtiary23-Feb-15 23:07 
GeneralRe: best pattern queue Pin
OriginalGriff23-Feb-15 23:42
mveOriginalGriff23-Feb-15 23:42 
GeneralRe: best pattern queue Pin
vahidbakhtiary24-Feb-15 0:02
vahidbakhtiary24-Feb-15 0:02 
GeneralRe: best pattern queue Pin
OriginalGriff24-Feb-15 0:17
mveOriginalGriff24-Feb-15 0:17 
I can't help you identify "requests that fail" - I have no idea what causes a request to fail, or how you detect it (remember, I can't see your screen or access your hard drive) - but as to the number of queues, that's easy.
Use multiple queues.
Have a "standard feed" queue, and move "failed" items to the "first generation failure" queue. If they fail again, move them to a "second generation failure" queue. (Use Locking to ensure thread safety while adding to or removing from a queue)
And have background tasks that periodically check the queue and retry. If the queue is empty, then it waits a while before looking again.
I'd probably add a timestamp to the "failure" queue, so I don't retry for a reasonable time, increasing with each generation.

But that isn't a pattern!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: best pattern queue Pin
Pete O'Hanlon24-Feb-15 0:30
mvePete O'Hanlon24-Feb-15 0:30 
GeneralRe: best pattern queue Pin
vahidbakhtiary24-Feb-15 0:54
vahidbakhtiary24-Feb-15 0:54 
GeneralRe: best pattern queue Pin
Dave Kreskowiak24-Feb-15 2:42
mveDave Kreskowiak24-Feb-15 2:42 
QuestionPending Status for new Articles Pin
Evil Iceblock23-Feb-15 17:25
Evil Iceblock23-Feb-15 17:25 
AnswerRe: Pending Status for new Articles Pin
Wendelius23-Feb-15 17:37
mentorWendelius23-Feb-15 17:37 
GeneralRe: Pending Status for new Articles Pin
Evil Iceblock23-Feb-15 18:01
Evil Iceblock23-Feb-15 18:01 
GeneralRe: Pending Status for new Articles Pin
Wendelius23-Feb-15 18:30
mentorWendelius23-Feb-15 18:30 
GeneralRe: Pending Status for new Articles Pin
Evil Iceblock23-Feb-15 19:05
Evil Iceblock23-Feb-15 19:05 
AnswerRe: Pending Status for new Articles Pin
manchanx23-Feb-15 17:38
professionalmanchanx23-Feb-15 17:38 
GeneralRe: Pending Status for new Articles Pin
Evil Iceblock23-Feb-15 18:02
Evil Iceblock23-Feb-15 18:02 
QuestionCryptography Pin
Afraz Nazeer Janjua22-Feb-15 7:40
Afraz Nazeer Janjua22-Feb-15 7:40 
AnswerRe: Cryptography Pin
Pete O'Hanlon22-Feb-15 7:47
mvePete O'Hanlon22-Feb-15 7:47 
AnswerRe: Cryptography Pin
Dave Kreskowiak22-Feb-15 9:20
mveDave Kreskowiak22-Feb-15 9:20 
AnswerRe: Cryptography Pin
OriginalGriff22-Feb-15 20:42
mveOriginalGriff22-Feb-15 20:42 
AnswerRe: Cryptography Pin
Afzaal Ahmad Zeeshan23-Feb-15 9:06
professionalAfzaal Ahmad Zeeshan23-Feb-15 9:06 
QuestionAutomapping properties assistance required Pin
Eagle3222-Feb-15 3:50
Eagle3222-Feb-15 3:50 
AnswerRe: Automapping properties assistance required Pin
manchanx22-Feb-15 5:27
professionalmanchanx22-Feb-15 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.