-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation to match the new App
and Model
classes
#165
Comments
Hey @haydnv , I may need access to your gitbooks.for the time being if you could review the docs i'll add them to the comments. |
Chain: persistent mutable state.In order to serve a dynamic application, you’ll have to have a way of updating your service’s persistent state. To do this you can use a Chain, a data structure which keeps track of mutations to a Collection in order to maintain the consistency of that State across every replica of an
When you start a TinyChain host with an App definition, it will assume that there is a hosted app with the given URI (”http://…/app/test/chain” in the example above) and attempt to join that App as a replica. Watch out for versioning issues! In production, it’s best to end your app URI with a version number which you can update in order to release a new, non-backwards-compatible version with different data and methods. We are attempting to find a solution to this and will be released at a future time. |
Object orentationOne of TinyChain’s most powerful features is its object-oriented API. For example:
TinyChain does not have any concept of member visibility, like a “public” or “private” method. |
host your serviceNow that we've defined some classes in and a Chain in ...(link to chain docs), it's time to put our service online! You can do this using the same object-oriented API that you used to build the service. For security reasons, TinyChain requires that you load your Cluster configuration from a local file on the host machine; see the next section, for instructions.
You can see more in-depth examples in the tests directory. With this one I think there is potentially a bug in tinychain?, every time I run the code using the latest tinychain bin (0.9.0-beta) i get the following:
Note that running it with the docker host is fine and works as expected. |
readthedocs.io also has not updated since v0.4 |
The readthedocs.io issue is now fixed: https://tinychain.readthedocs.io/en/latest/ |
These pages:
Have been badly out-of-date since
Cluster
was replaced byApp
. We should update them based on theApp
andModel
examples in thetests/apps
directory.The text was updated successfully, but these errors were encountered: