Giter Site home page Giter Site logo

mcneel / compute.rhino3d.appserver Goto Github PK

View Code? Open in Web Editor NEW
110.0 14.0 208.0 8.13 MB

A node.js server for solving Grasshopper definitions on Rhino Compute

JavaScript 28.41% HTML 63.81% Dockerfile 0.25% Handlebars 7.52% Procfile 0.01%
nodejs expressjs rhino3d grasshopper3d compute-rhino3d grasshopper heroku

compute.rhino3d.appserver's People

Contributors

andyopayne avatar dependabot[bot] avatar fraguada avatar pearswj avatar sbaer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

compute.rhino3d.appserver's Issues

Handle cases when caching is not desired

  • In situations where compute results are errors or empty data
  • In situations where one wants to recalculate
  • In situations where one doesn't want the result cached

Catch server errors

More gracefully catch 500 Internal server errors from Compute Server. Throwing an error results in an UnhandledPromiseRejectionWarning.

add job queue

Handle cases for long running solutions.
Are there job queues strategies that do not add another dependency like Redis?

A question about exporting step file

Dear all:
I have a question about exporting step file.
I called the GH file by computing service(https://developer.rhino3d.com/guides/#compute),
but I could not export the STEP format using the LunchBox save Object plugin .
While I can export STEP format using the same plugin by openning grasshopper software.
could you tell me the right way to call GH file by computing service?
I look forward to your reply as soon as possible.
Thank you very much.

Use memcached on Heroku

Provide an option in our appserver caching to use memcached instead of our current in-memory cache. We would need to include something like the hash of a definition contents in the key so we don't get old cache results from a previous run of the appserver and an old GH definition.

Seems like we could check for a memcached environment variable on Heroku and if it exists use that instead of the in-memory cache.

Test appserver locally against a remote compute server

I have appserver running fine for production. We have a compute server in a virtual machine and we have appserver on a separate web machine.

For locally testing during development I am trying to run appserver locally, while still connecting to our remote compute server so that I do not have to install Rhino on my local machine. So I am doing:

export COMPUTE_URL=some external server
export RHINO_API_TOKEN=…
export RHINO_COMPUTE_KEY=…
npm start

But, this does not seem to work, I keep getting 500 errors from the compute server. Should I expect this type of setup to work? Does the compute server require some sort of publicly accessible callback URL at appserver?

Thanks for any thoughts. Andrew.

Implement cache warming scripts

Allow for creating a script that can be run which can asks the appserver to solve many different scenarios in order to build up a large set of cached results. The idea is that if we had a definition that took a minute to solve for each iteration we could create a script that ran a large series of parameters and we could have 1,000+ cached solutions after a day of hitting compute. Cached results will take milliseconds to return instead of a minute each. Load balancing out to multiple compute instances would increase this number per day

Hosting FEA tool on Compute

Hello.

I am trying to explore the use of a web app to solve some simple FEA Grasshopper model but I am having some issue.
The tool required to run an external application (I do it with subprocess) from which we can read an output file.
Is it possible?
I am getting this error message but I am not able to get any tip.

image

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.