FatFractal customer forums



Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
NoServer Questions and Answers / Facebook Login with Fatfractal
« Last post by manjonn on March 19, 2015, 09:14:15 PM »
I want my users to login with Facebook, but I want to control the login and pass the username & authotoken. How do I do that?
22
NoServer Questions and Answers / Re: How to rename a column?
« Last post by gkc on March 19, 2015, 06:17:44 PM »
Currently no. However very simply dealt with: just create a server extension to modify any existing data. Add this your application.ffdl
Code: [Select]
create extension /renameSomeField as javascript:require('scripts/Extensions.js').renameSomeField();
and in ff-scripts/Extensions.js put this:
Code: [Select]
var ff = require('ffef/FatFractal');
exports.renameSomeField = function() {
  var cursor = ff.getCursorForQuery('/MyCollection/(myOldField ne null)');
  while (cursor.hasNext()) {
    var obj = cursor.next().value;
    obj['myNewField'] = obj['myOldField'];
    delete obj['myOldField'];
    ff.updateObj(obj);
  }
};
23
NoServer Questions and Answers / Re: Can you deploy FatFractal on Amazon ec2?
« Last post by mholst on March 18, 2015, 11:36:40 AM »
Hi Edward,

The easiest way to bring up your own FF EC2 footprint is to install the FF Cloud-in-a-Box solution (http://fatfractal.com/v2/documentation/#document-cib-overview-and-architecture).

You can also simply deploy the desktop run time onto an EC2 instance and manually deploy your app backend by dropping it into the queue directory.

The FF public footprint is a 5 tier topology with the following tiers -

ELB (elastic load balancer/tier 1) -> nginx cluster (tier 2) -> ff director cluster (tier 3) -> application containers (tier 4) -> persistence (tier 5)

If you wanted to build out your own FF footprint it would look something like the above topology.

Below are answers to the questions in your post -

q1. On a side note though, I am not sure exactly how your architecture works, but I am always worried about scalability and storage.

a1. All compute and persistence is scaled horizontally, which if you decided to build out your own footprint you eventually would do as well.

q2. Can I connect and external DB or DB server?

a2. If you are referring an application container running on the public footprint the answer is no. If you are referring to an application container on a footprint that you have built out the answer is yes (you would configure the storage metadata in the config.properties located in the conf directory).

q3. If not how would I scale the DB etc, would I be able to run multiple instances of FF on my server to compensate for that or just scaling in general, how would sessions be distributed?

a3. see a2. I believe NoServer is sessionless with the exception of cookie info that is propagated with all requests.

q4. If I wanted to connect to S3 how easily would I be able to do this?

a4. Blob storage in our public footprint is managed by a system app (a configured end point). Basically you configure the application container to send all uploaded blobs to some end point. That end point would then be responsible for persisting the blobs into S3. All blobs in our public footprint are persisted to S3.

If you want to ping me directly hit me at mic@fatfractal.com

Cheers.

mic
24
Alright, I will try this and start testing and giving some feedback.

On a side note though, I am not sure exactly how your architecture works, but I am always worried about scalability and storage. Can I connect and external DB or DB server? If not how would I scale the DB etc, would I be able to run multiple instances of FF on my server to compensate for that or just scaling in general, how would sessions be distributed? If I wanted to connect to S3 how easily would I be able to do this?

Regards
25
NoServer Questions and Answers / How to rename a column?
« Last post by hikuimiao on March 18, 2015, 02:53:16 AM »
Is there any way to rename a column?
26
Hi Edward:

The answer is yes. If you are interested to try it out, we would love to get your feedback.

If so, please contact mic@fatfractal.com and we will get you going...

Thanks,

Kevin
27
Looking at our framework code, this message is being incorrectly logged in this situation, and you can safely ignore. I have fixed for next release so you shouldn't see these messages any more.
28
Hi Vaan,

Can you share a code snippet for how you are creating the bar_location field in your server-side code please?
29
Greetings,

I am using getArrayFromUri in iOS in the form

Code: [Select]
    [[FatFractal main] getArrayFromUri:@"/Bar/(blah eq 'foo')"
             onComplete:^(NSError *err, id objs, NSHTTPURLResponse *httpResponse) {
                 NSArray *results = (NSArray *)objs;
             }];

The queries are working and the results seem fine, however when I do this fetch I receive a number of warnings in my debug console.

Code: [Select]
2015-03-17 15:13:39.578 FooApp[1266:635076] setValuesOnObject: Found value with un-handled class __NSCFDictionary for key bar_location
2015-03-17 15:13:39.581 FooApp[1266:635076] setValuesOnObject: Found value with un-handled class __NSCFDictionary for key bar_location
2015-03-17 15:13:39.587 FooApp[1266:635076] setValuesOnObject: Found value with un-handled class __NSCFDictionary for key bar_location
2015-03-17 15:13:39.591 FooApp[1266:635076] setValuesOnObject: Found value with un-handled class __NSCFDictionary for key bar_location
2015-03-17 15:13:39.594 FooApp[1266:635076] setValuesOnObject: Found value with un-handled class __NSCFDictionary for key bar_location
2015-03-17 15:13:39.601 FooApp[1266:635076] setValuesOnObject: Found value with un-handled class __NSCFDictionary for key bar_location

bar_location is an atrribute of Bar and is an FFGeoLocation.

I am creating the Bar objects on the server side in JS in a server extension.

Has anyone seen this type of warning before ?
30
NoServer Questions and Answers / Unity with FatFractal
« Last post by kevin@fatfractal.com on March 16, 2015, 03:43:40 PM »
Is anyone using Unity for game development?
Pages: 1 2 [3] 4 5 ... 10
Copyright © FatFractal customer forums