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

Aperta
#13 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
6
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
api, backend, distributed-systems
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.