compas-dev / compas-dev/compas_cloud

feature_request: return wrapped cached object on which methods of cached object can be directly called, and executed in server

Offen
#13 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
6
Forks
2
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Create a easy-to-work with wrapped cached object on which methods of the cached object (which may call all the nice scientific libraries we cannot use in IronPython) can be directly called--triggering their execution in the server.

An example of how it would be used from the point of the Proxy-using developer:
![image](https://user-images.githubusercontent.com/9421670/98230527-8f348180-1f5b-11eb-9f84-9c1ca9f720df.png)

This involves creating a wrapped cached object that gets returned when Proxy.cache(object) is used:
![image](https://user-images.githubusercontent.com/9421670/98229665-79728c80-1f5a-11eb-9851-a3c630702805.png)
This class, as can be seen, gathers and wrap all the methods that are in the cached object's class, so that they may directly be called from the Client side...

Where proxy.run_method_of_cached was discussed in an earlier Issue...

Finally, the wrapped object also provides a handy restore function that allows the cached object to be recreated in the client side.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start from Proxy.cache(object) and the proposed wrapped cached object, then review the earlier proxy.run_method_of_cached discussion. The feature is complete when cached-object methods can be called from the client and execute on the server, while the wrapper also supports restoring the cached object client-side.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
api, backend, distributed-systems
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.