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

Abierto
#13 6 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
6
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
api, backend, distributed-systems
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.