Can I use Cloud Firebase features for a search engine?

Firebase recently released cloud-based integration that allows us to load Javascript functions to run without the need for our own servers.

Is it possible to create a search engine using these functions? My idea is to use a local disk (tmpfs volumes) to store indexed data in memory, and for each write event, I will index new data. Does tmpfs support data between function calls (instances)?

Can cloud functions be used for this purpose or should I use a dedicated server to index the data?

Another question related to this: when cloud functions receive data from the Firebase Realtime database, does it consume a network or just read a disk? How is it calculated with a printer?

thanks

+6
source share
2 answers

You could try this. Cloud functions have a local file system, which is usually used to maintain state during a run. See this answer for more details: Recording temporary files from Google cloud function

( ) , . , . . , . , , .

, Algolia : https://github.com/firebase/functions-samples/tree/master/fulltext-search. : 55 !

(Firebase Database Firebase Storage, ) . , Cloud Function, .

+9

GCF + google. .

  • , . , -.

  • , . : . , .

, , - . , , , Cloud Cloud ( , ).

+4

Source: https://habr.com/ru/post/1015655/


All Articles