Giter VIP home page Giter VIP logo

Comments (7)

benfoster avatar benfoster commented on May 26, 2024

+1 We're using RavenDB which supports Async sessions.

from cachecow.

 avatar commented on May 26, 2024

Please assign to me. I'm working on this now. See https://github.com/rbeauchamp-lendingtree/CacheCow/tree/feature/15

from cachecow.

aliostad avatar aliostad commented on May 26, 2024

Hi @rbeauchamp-lendingtree unfortunately not able to lose support for 4.0 as many clients still use 4.0. And doing async in 4.0 is a nightmare.

from cachecow.

 avatar commented on May 26, 2024

@aliostad Not sure I understand. Are you saying that you don't want this implemented? Or if it is implemented, it needs to be done in .NET 4.0? How about a separate .NET 4.5 async build? Or just keep 4.0 clients on the old version and move on. Seems like for an ASP.NET Web API HTTP library, at some point you have to support async; this is an issue that's been open since Jan 2013. (And you have someone who is volunteering to do the hard work. It's a huge change!)

from cachecow.

aliostad avatar aliostad commented on May 26, 2024

A separate async build means supporting two different codebases and is a lot of work. It is kinda forking in a different direction. However, it would be nice to support.

So can you please outline your plan?

from cachecow.

 avatar commented on May 26, 2024

I would support either of these plans:

  1. Upgrade to .NET 4.5, change the interfaces, and merge into a single code base. The older .NET 4.0 sync versions would be available via Nuget but not supported.
  2. Upgrade to .NET 4.5, change the interfaces, and commit to a separate branch which generates *.Async Nuget packages. Two codebases would be maintained producing a total 44 Nuget packages for the project.

@aliostad Since you are the repo owner, I'll leave the decision up to you.

from cachecow.

aliostad avatar aliostad commented on May 26, 2024

Thank you @rbeauchamp-lendingtree for volunteering.

The support of .NET 4.0 in CacheCow has been really important (and I suffered by writing async code in 4.0 with no async/await) but I think with vNext already on the horizon, we should drop it and move on.

So option 1 is the favourite. And this would be the v2.0. The nuget can stay as it is.

The work would entail:

  • simplifying ContinueWith() codes to async/await
  • removing parts of the code which I am offloading where async meets sync (serialisation/deserialisation)
  • Updating all storages

Can you please confirm you are happy with this?

from cachecow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.