GCP Firebase connection to compute engine VM - firebase

this is my current setup:
a flutter application hosted and deployed on firebase in eu (multiple regions in European Union)
a compute engine VM deployed in asia-northeast1-b
on the VM machine I have a websocket server running
From my flutter application on firebase I want to connect to my websocket server on the compute engine machine and consume the messages.
In my local environment everything is working fine, but I cannot sort out the connection between the flutter app on firebase and the VM on compute engine.
Is there any guide to achieve this scenarios?

No, there is not a guide per se.
You could deploy an API -that you should develop- to a Compute Engine instance, and consume said API in the flutter app hosted in Firebase.

Related

Connect to local CosmosDB emulator from Xamarin.Forms

I have a Xamarin app, which use Azure Storage and Azure Cosmos.
For now, both storage are emulated from my PC.
As well as a Pixel 2 from the Android emulator.
I found that I need to configure the ip as 10.0.2.2, even if I can't find this IP or even network on my PC.
Although, it works well with the storage account, I can connect to it.
But when I'm connecting to Cosmos, I get the following exception :
Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/handshake_client.c:1132
I'm not an expert in Android, How can I add a custom certificate?
Or just disable SSL for Cosmos emulator?

App on vercel fails to connect with AWS RDS

I am facing trouble when my app written using NextJS with PrismaIO as database ORM deployed to Vercel tries to connect with MYSQL database which is hosted on AWS RDS fails due to time out. It shows below error after a while:
502: BAD_GATEWAY
Code: NO_RESPONSE_FROM_FUNCTION
ID: bom1::zrmv2-1609789429213-86b5142a230c
I have added my app hosted at Vercel's IP address whitelisted in security group of AWS RDS too but the app still timesout and fails with 502 error page. Please help.
Thank you everyone this has turned frustrating for me and this way I can't push it to production with my RDS db exposed to all IPs so I am dropping this use-case and converting my NextJS app to CRA based UI which will be deployed to S3 so that RDS and S3 can have common security protocol. I have tested the RDS with EC2 sharing common security group and they connect really well and works out of the box. Thank you everyone once again.

Host Docker application on Firebase Static Hosting

How can I host an Docker container based app to Firebase static hosting ?
Is it even doable/allowed ?
Or should I host Docker based apps on services like Digital Ocean / Vultr / Linode / AWS instead ?
I'm using Firebase as my main database and since it comes with hosting in the same pricing model I would like to make good use of it and have everything on Google based servers rather than hosting elsewhere (such as Digital Ocean) and connecting to my database which would then be on Google.
Thank you
Firebase Hosting is a static file host: it serves files without executing their content. While it was recently expanded to support hosting of Express.js apps through Cloud Functions, Firebase Hosting is not a generic docker host.

Receive Firebase Cloud Messaging without SDK

I have a web application that uses websockets to receive real time updates. Since I don't use the websocket connection for anything else, and scaling websocket servers is a pain, I'm considering moving the messaging part to Firebase Cloud Messaging.
It seems a pretty straight forward port for my web app.
However, the web app comes with a companion desktop app that some customers use, that is written in QT+Python. Is there any way to receive the FCM messages in a different client than the official SDKs?

Access TFS from Azure Service

In my application, I have to show the work items of logged in user. I have tried to pull work items of TFS from the application and It’s working fine on local server, but when it is deployed to the cloud server, it is not working and getting error message saying ‘TF400324 : The remote name could not be resolved’, as a cloud application is trying to ping internal TFS.
Is there any way to connect to internal TFS from the application hosted on cloud server ?
Many thanks in advance..
You can setup an Azure VPN tunnel between your cloud service and your internal network:
http://azure.microsoft.com/en-us/services/virtual-network/
Or you could expose your internal TFS to the internet:
http://msdn.microsoft.com/en-us/library/bb668967.aspx
Or you could use the Azure BizTalk Hybrid Connections to enable the communication:
http://azure.microsoft.com/en-us/documentation/articles/integration-hybrid-connection-overview/
After multiple tries, Service Bus Relay Binding is the one, to ping on-premise environment(internal tfs) from azure cloud server(web role).
The below link works like charm..
Service Bus Relay Binding
Hope It Helps to Somebody who has faced the same issue I've faced. Have Fun..

Resources