You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I post some "plain old good news". A shout out to CSLA 6+ and Blazor SS. The upgrade to v6 was a HUGE learning curve...but it is SOOO COOL once you get through it and can start using the new features and a modern UI like Blazor with .NET 6+.
This following code shows one particular feature from LocalProxy. By default it creates separate scopes for each DP call (Logical Server Side of the data portal) This allows for multiple concurrent database connections from the same user's process! In CSLA 5 and ASP.Net WebForms, I could not have done this so easily. In Blazor pages it just works. Fire off a bunch of DB tasks without worries making for faster code in BIG DATA scenarios while giving a nice user experience. Here is an Async Fetch method pulled right from a blazor page:
Thanks for all the work @rockfordlhotka and of course the community that helped us get here too.
P.S. The _appCacheSvc takes care of the original DB fetch, the timed refreshing, and the serialization of CSLA ReadOnly objects into byte array for storage via the IDistributedCache interface allowing them to be safely used by multiple users. The serialization of CSLA objects in and out of cache is still significantly faster than always fetching from the DB (in almost half the time in a scenario where I have to fetch over 300K records)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Today I post some "plain old good news". A shout out to CSLA 6+ and Blazor SS. The upgrade to v6 was a HUGE learning curve...but it is SOOO COOL once you get through it and can start using the new features and a modern UI like Blazor with .NET 6+.
This following code shows one particular feature from LocalProxy. By default it creates separate scopes for each DP call (Logical Server Side of the data portal) This allows for multiple concurrent database connections from the same user's process! In CSLA 5 and ASP.Net WebForms, I could not have done this so easily. In Blazor pages it just works. Fire off a bunch of DB tasks without worries making for faster code in BIG DATA scenarios while giving a nice user experience. Here is an Async Fetch method pulled right from a blazor page:
Thanks for all the work @rockfordlhotka and of course the community that helped us get here too.
P.S. The _appCacheSvc takes care of the original DB fetch, the timed refreshing, and the serialization of CSLA ReadOnly objects into byte array for storage via the
IDistributedCache
interface allowing them to be safely used by multiple users. The serialization of CSLA objects in and out of cache is still significantly faster than always fetching from the DB (in almost half the time in a scenario where I have to fetch over 300K records)Beta Was this translation helpful? Give feedback.
All reactions