You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
3 Hrs
16 Min
33 Seg

Diseño de alto nivel: CDN y Push Provider

7/26
Resources

What is a CDN and why is it crucial for high performance applications?

A CDN (Content Delivery Network) is a critical piece in optimizing the performance of applications that require fast content delivery. In essence, it is a network of geographically distributed servers that bring content closer to end users. This is particularly important for applications with a global user base, where the proximity of the server to the user can make a significant difference in terms of speed and efficiency.

How does a CDN work?

  • Geographical distribution of servers: Instead of having one centralized server, a CDN makes use of multiple servers located at various points around the world. This means that if a user in India tries to access an image or content hosted on a CDN, he or she is likely to access the closest server rather than one on a different continent.

  • Improved performance: By reducing the distance content must travel, a CDN can significantly improve loading speed. This not only facilitates a smoother user experience, but also reduces the load on the central server, improving the scalability of the application.

Implementing a CDN is key to making applications faster and more efficient, providing users with the best possible experience.

What are push notifications and how do they work?

Push notifications have revolutionized the way applications connect with users, offering direct and timely messages through mobile devices.

How is the push notification flow orchestrated?

The operation of push notifications involves several components that ensure their effective delivery:

  • Operating system and Google Cloud: The operating system on a mobile device communicates with Google Cloud to receive notifications. This connection acts as a continuous channel that ensures that notifications reach the user.

  • Push Provider: This is the key intermediary that coordinates the receiving and sending of notifications between Google Cloud and the device's operating system. The Push Provider ensures that notifications are delivered in an efficient and timely manner.

With these integrations, push notifications are constantly improving, ensuring that messages reach users correctly and maintaining active interaction with the application.

How has push notification delivery evolved?

Previously, the delivery of push notifications was an inconsistent process; sometimes notifications did not arrive, or it was not known if the user had read them. Fortunately, technological advances have greatly improved this experience.

Improvements and optimization

  • Standardization and centralization: Now, the delivery of notifications is more centralized and optimized within the operating system. This development means that applications do not have to establish their own connections, but instead use persistent and well-optimized systems.

  • Improved reliability: The changes have led to more reliable notification delivery, ensuring that messages reach the user more consistently.

These advances not only improve app efficiency, but also give developers greater control and predictability over how users are interacted with through push notifications.

With these concepts in mind, we are better equipped to create applications that not only meet the expectations of our users, but are also at the forefront of modern technology. Keep learning and exploring the possibilities offered by these technological tools!

Contributions 6

Questions 1

Sort by:

Want to see more contributions, questions and answers from the community?

CDN (Content Delivery Network) es una red de servidores que se utilizan para distribuir contenido web, como imágenes, videos y archivos estáticos, de forma más rápida y eficiente a través de Internet.

En relación al Image Loader, la implementación de un CDN puede mejorar significativamente la velocidad de carga de las imágenes en una aplicación Android. Esto se debe a que un CDN puede servir la imagen desde el servidor que se encuentra geográficamente más cerca del usuario final, lo que reduce el tiempo de carga y mejora la experiencia del usuario.

Además, el uso de un CDN puede reducir la carga en el servidor de origen, lo que significa que puede haber menos problemas de congestión y latencia, y también puede reducir los costos de ancho de banda del servidor de origen.

En resumen, el uso de un CDN es importante en el diseño de aplicaciones Android porque puede mejorar significativamente la velocidad de carga de las imágenes y reducir los costos y la carga en el servidor de origen. Por lo tanto, es recomendable que cualquier aplicación que utilice un Image Loader implemente un CDN para optimizar la carga de imágenes y mejorar la experiencia del usuario.

Un push provider es un servicio que permite enviar notificaciones push a dispositivos móviles. En general, los push providers proporcionan una API que permite a los desarrolladores enviar notificaciones push a través de una conexión segura y cifrada.

Para implementar un push provider en una aplicación Android, primero es necesario registrarse en un servicio de push provider, como Firebase Cloud Messaging o Amazon Simple Notification Service. Una vez registrado, se debe seguir los siguientes pasos:

Configurar el proyecto en el servicio de push provider, lo que implica generar credenciales o claves API para poder enviar notificaciones.

Agregar la librería del servicio de push provider a la aplicación Android.

Configurar el manifiesto de la aplicación con los permisos necesarios para recibir y procesar notificaciones push.

Registrar el dispositivo con el servicio de push provider para obtener un identificador de registro único (conocido como token o InstanceID) que se utiliza para enviar notificaciones push al dispositivo.

Implementar la lógica necesaria para recibir y procesar las notificaciones push en la aplicación, lo que generalmente implica implementar un servicio o BroadcastReceiver que se activa cuando se recibe una notificación.

En resumen, implementar un push provider en una aplicación Android implica registrarse en un servicio de push provider, agregar su librería a la aplicación, configurar el manifiesto de la aplicación y registrar el dispositivo para recibir notificaciones. Una vez hecho esto, se debe implementar la lógica necesaria para procesar las notificaciones push en la aplicación.

Push Provider

Es la capa que maneja toda la configuración y comportamiento de una push notification.

La push notification usa 3 componentes:

• El dispositivo.
• El proveedor.
• Firebase Cloud Message.

Una red de distribución de contenidos (CDN, content delivery network en inglés) es una red superpuesta de computadoras que contienen copias de datos, colocados en varios puntos de una red con el fin de maximizar el ancho de banda para el acceso a los datos de clientes por la red. Un cliente accede a una copia de la información cerca del cliente,en contraposición a todos los clientes que acceden al mismo servidor central, a fin de evitar embudos cerca de ese servidor.

Fuente: Wikipedia.

Interesante el tema, se entiende la teoría. Pero me gustaría visualiza un ejemplo.

Push Provider
Es una capa que maneja la configuración y comportamiento de las Push Notification. La Push Notification usa tres componentes:
Sistema operativo: El SO a través de una capa específica le informa a Google Cloud que desea aceptar notificaciones push de una aplicación específica.
Google cloud: Google Cloud acepta la vinculación del sistema operativo.
Push Provider: Se encarga de generar notificaciones push para que Google Cloud se las envíe al SO de nuestro celular.

Un CDN es una red de servidores que se utilizan para almacenar y distribuir contenido multimedia como imágenes y videos a su cliente. Un CDN es útil porque habilita el servidor más cercano al usuario y de esta manera se pueda entregar el contenido multimedia más rápido, de esta manera mejorar la carga del servidor de origen.