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

Suave.io web Api host with simple operations #1

Open
dkholod opened this issue Mar 24, 2016 · 1 comment
Open

Suave.io web Api host with simple operations #1

dkholod opened this issue Mar 24, 2016 · 1 comment

Comments

@dkholod
Copy link
Owner

dkholod commented Mar 24, 2016

Operations

  • /healthcheck - always returns OK
  • /echo - echos msg query param
  • /count - calculates page length specified in url query param
  • /proxy - returns page content specified in url query param

Exercises

  • Working with async 04faf43
  • Caching, memoization, async 9635c48
    I ended up with 2 functions memoize for regular and memoizeAsync for async functions.
    @theburningmonk please take a look.
@theburningmonk
Copy link
Collaborator

Looks good on the memoizeAsync, one thing to consider is to use the atomic GetOrAdd method instead https://msdn.microsoft.com/en-us/library/ee378677(v=vs.110).aspx

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

2 participants