App Review – Close more sales with ProductEngine + Salesforce

App Review – Close more sales with ProductEngine + Salesforce

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

Are you tired of dealing with the frustrations that can arise when sales people, or worse yet channel partners, don't have the right price available at the right moment? Keeping pricing in sync can be a challenge, but if done well it will help you sell more.

Pricing Needs To Be Consistent Across All Systems And Pricelists - Not Just Salesforce!

Easy access to the right price is crucial for sales success. It can make or break an opportunity, attract or deter customers, and ultimately affect your bottom line. Inconsistencies can cause confusion, frustration, and even distrust among customers or channel partners. They may question your competency or feel like they're being taken advantage of, leading them to take their business elsewhere. At best you will waste a lot of internal time rectifying the issue caused by incorrect pricing.

The Challenge

The key challenge is choosing a source of truth for pricing. For most businesses, this is either a spreadsheet or a system such as CRM, ERP or billing. Unfortunately, both of these approaches can be problematic. With a spreadsheet (the most popular) you are choosing a system that is not designed to track and understand changes that requires a lot of manual transposition of data.  Then getting the data from the spreadsheet to other systems is a tedious and slow manual process. If you choose a system then you still need to be able to create and share price lists and sync the data to other systems. Not many systems manage this well.

A Purpose-Built Solution

ProductEngine is designed from the ground up to manage pricing and ensures that staff and channel partners have a single online place where they can access the right price every time. This means that they can focus on what matters most: engaging with customers and closing deals. ProductEngine can also translate and sync the data to the requirements of other systems - some of which are unnecessarily difficult.

Takeaways

  1. Strive for pricing that is accurate and consistent across all systems and price lists.
  2. Ensure that staff and channel partners have access to clear and up-to-date pricing information to help them close more sales.
  3. Buy ProductEngine today and sell more!

ProductEngine Integration Video

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

Free Salesforce Integration User License Now Available

Free Salesforce Integration User License Now Available

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

Salesforce announced 5 free Integration Licenses during TrailblazerDX 2023. These licenses will be available starting March 14, 2023. In this blog post, I will be sharing details about these free Integration Licenses

Content

  • Introduction of Integration License
  • How can you access these licenses?
  • How can you use these licenses?
  • Advantages
  • Price
  • Conclusion

    Introduction of Integration License

    In Salesforce, an integration license is typically required when you want to connect Salesforce with external systems or applications. This integration process helps in seamless data exchange and process automation between Salesforce and other systems. The integration license ensures that you are compliant with Salesforce's terms of use and have the necessary permissions to access the platform's APIs and other functionalities.

    Until now, there was no dedicated user login for connecting Salesforce with another platform, we need to buy licenses for each integration work. This can become expensive very quickly.

    Salesforce recently announces that every Performance, Enterprise, and Unlimited edition will get 5 free Salesforce Integration Licenses starting from March 14, 2023. Also, each developer edition will get 1 license.

    Read the documentation - Salesforce Integration User License.

    How Can You Access These Licenses?

    You can go to Company Information from Setup to find out if these licenses are available to your org.

    How Can You Use These Licenses?

    You can choose "Salesforce Integration" while creating a new user.

    Advantages

    1. Free: Biggest advantage is that it is free. So helps to reduce the cost.
    2. Security: Salesforce is a cloud-based platform with robust security features. An integration license ensures that only authorized users and systems have access to the data and APIs, maintaining the security of your Salesforce instance and data.

    3. API Limits and Usage: Salesforce enforces API usage limits depending on your organization's edition and licenses. An integration license allows you to use the APIs within the specified limits and helps Salesforce manage resources efficiently.

    4. Compliance: By obtaining an integration license, you adhere to Salesforce's terms of use and ensure that your integration follows their guidelines and policies. This helps maintain the overall stability and performance of the Salesforce ecosystem.

    5. Access to Features and Functionality: An integration license provides you with the necessary permissions to use specific Salesforce features and functionalities required for the integration. This includes access to APIs, objects, and fields that you need to share data with external systems.

    6. Support and Maintenance: With a valid integration license, you can receive technical support from Salesforce and access resources to help you troubleshoot and maintain your integration.

    Price

    Salesforce will give 5 free Salesforce Integration User Licenses and any additional licenses you can buy at $10/month each. 

    Conclusion

    In conclusion, obtaining an integration license in Salesforce is crucial for organizations that aim to connect their Salesforce instance with external systems or applications. The license ensures secure data exchange, adherence to Salesforce's terms of use, compliance with API limits, access to necessary features and functionalities, and availability of support and maintenance. By acquiring an integration license, organizations can seamlessly integrate Salesforce with other systems, streamline their business processes, and maintain the overall stability and performance of the Salesforce ecosystem.

    Also, while dealing with Integration Licenses/User, you should always give Integration Users APU Only access. Read the official documentation here.

    Disclaimer

    This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

    Comments

    Probes In Kubernetes – Liveness Probe, Readiness Probe, Startup Probe

    Probes In Kubernetes – Liveness Probe, Readiness Probe, Startup Probe

    Sudipta Deb

    Sudipta Deb

    Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

    Welcome to my 4th blog post on the Kubernetes series where today I will be talking about different probes that can be used to check the health of pods or containers in Kubernetes!

    Kubernetes is a popular container orchestration system that provides a scalable and reliable way to deploy, manage, and scale applications. One of the key features of Kubernetes is the ability to automatically check the health of pods and containers to ensure that they are running properly.

    In this blog post, I will explore the different types of probes that Kubernetes provides and how they can be used to monitor the health of pods and containers.  Whether you're new to Kubernetes or an experienced user, this post will help you better understand how to ensure that your applications are running smoothly.

    Read this blog post or watch the video below to understand Different Probes in Kubernetes.

    The form you have selected does not exist.

    Content

    • Liveness Probe
      • How Liveness Probes Work
      • Using Liveness Probes To Check Pod Health
      • Let's Implement Liveness Probe
    • Readiness Probe
      • How Readiness Probes Work
      • Using Readiness Probes To Check Pod Health
      • Let's Implement Readiness Probe
    • Startup Probe
      • How Startup Probes Work
      • Using Startup Probes To Check Pod Health
      • Let's Implement Startup Probe
    • Combine Liveness & STartup Probe Together
    • Conclusion

    Liveness Probe

    Liveness probes are health checks performed by Kubernetes to determine whether a container in a pod is running and healthy. These probes periodically verify that the application is running as expected and, if necessary, take corrective action to improve the stability and availability of your application.

    If a liveness probe fails, Kubernetes assumes that the container is unhealthy and automatically restarts it. This ensures that any temporary issues or crashes are quickly resolved, minimizing downtime and keeping your applications running smoothly.

    How Liveness Probes Work

    There are three types of liveness probes in Kubernetes:

    1. HTTP GET Probes: These probes send an HTTP GET request to the specified path and port on the container. If the probe receives an HTTP response with a status code between 200 and 399, it considers the container to be healthy.
    2. TCP Socket Probes: These probes attempt to establish a TCP connection to the specified port on the container. If the connection is successful, the container is considered healthy.
    3. Exec Probes: These probes execute a command within the container. If the command returns a 0 exit status, the container is considered healthy. Non-zero exit statuses indicate that the container is unhealthy.

    Using Liveness Probes To Check Pod Health

    Implementing liveness probes in your Kubernetes deployments can help improve the reliability and resilience of your applications. Here's how liveness probes can be helpful:

    1. Automatic Container Restart: If a container becomes unresponsive or crashes, the liveness probe will detect the issue and trigger an automatic restart. This ensures that your application continues to run with minimal downtime.
    2. Detecting Deadlocks: Liveness probes can identify when an application becomes deadlocked and unresponsive. When detected, Kubernetes restarts the container to resolve the issue and keep your application available.
    3. Improving Application Stability: By continually monitoring container health, liveness probes help maintain the overall stability of your application. This reduces the likelihood of cascading failures and improves the user experience.

    Let's Implement Liveness Probe

    In this example, the liveness probe checks for the file /tmp/healthy. The probe starts 10 seconds after the container starts. The probe runs every 5 seconds, and if it fails, Kubernetes restarts the container.

    Readiness Probe

    Readiness probes are health checks performed by Kubernetes to determine if a container is ready to accept traffic. While liveness probes focus on ensuring that a container is running and healthy, readiness probes ensure that a container is prepared to handle incoming requests. If a readiness probe fails, Kubernetes will stop routing traffic to the container, preventing users from experiencing errors or degraded performance.

    How Readiness Probes Work

    Readiness probes work similarly to liveness probes, with three types available:

    1. HTTP GET Probes: These probes send an HTTP GET request to the specified path and port on the container. If the probe receives an HTTP response with a status code between 200 and 399, it considers the container to be ready.
    2. TCP Socket Probes: These probes attempt to establish a TCP connection to the specified port on the container. If the connection is successful, the container is considered ready.
    3. Exec Probes: These probes execute a command within the container. If the command returns a 0 exit status, the container is considered ready. Non-zero exit statuses indicate that the container is not ready to accept traffic.

    Using Readiness Probes To Check Pod Health

    Implementing readiness probes in your Kubernetes deployments can help improve the performance and reliability of your applications. Here's how readiness probes can be helpful:

    1. Traffic Management: Readiness probes ensure that traffic is only routed to containers that are prepared to handle requests. This helps prevent users from experiencing errors, slow response times, or service degradation.
    2. Application Scaling: When scaling your application, readiness probes help Kubernetes determine when newly added containers are ready to receive traffic. This ensures that your application scales smoothly and maintains consistent performance.
    3. Rolling Updates: Readiness probes play a crucial role during rolling updates, allowing Kubernetes to determine when a new version of a container is ready to accept traffic. This helps ensure seamless updates with minimal user impact.

    Let's Implement Readiness Probe

    In this example, the readiness probe checks for the file /tmp/healthy. The probe starts 10 seconds after the container starts. The probe runs every 5 seconds, and if it fails, Kubernetes considers the container not ready to accept traffic.

    Startup Probe

    Startup probes are health checks performed by Kubernetes to determine if a container has successfully started up and initialized its application. During the startup phase, a container might require additional time to load data, initialize state, or perform other necessary tasks before being fully operational. Startup probes help ensure that a container is given enough time to complete these tasks before it is considered ready to accept traffic or checked for liveness.

    How Startup Probes Work

    Startup probes work similarly to liveness and readiness probes, with the same three types available:

    1. HTTP GET Probes: These probes send an HTTP GET request to the specified path and port on the container. If the probe receives an HTTP response with a status code between 200 and 399, it considers the container to have successfully started.

    2. TCP Socket Probes: These probes attempt to establish a TCP connection to the specified port on the container. If the connection is successful, the container is considered to have started successfully.

    3. Exec Probes: These probes execute a command within the container. If the command returns a 0 exit status, the container is considered to have successfully started. Non-zero exit statuses indicate that the container has not yet completed its startup tasks.

    Using Startup Probes To Check Pod Health

    Implementing startup probes in your Kubernetes deployments can help improve the performance and reliability of your applications. Here's how startup probes can be helpful:

    1. Graceful Initialization: Startup probes give your containers the necessary time to complete initialization tasks before they are considered ready to accept traffic or checked for liveness. This ensures that your application starts smoothly and avoids issues related to premature traffic routing or container restarts.

    2. Dependency Management: In some cases, your container might depend on external services or resources to be available before it can fully initialize. Startup probes can help ensure that your container only starts accepting traffic once all dependencies are satisfied.

    3. Simplified Health Check Management: Startup probes can simplify health check management by allowing you to use the same probe type and configuration for liveness, readiness, and startup checks, reducing the complexity of your deployment configurations.

    Let's Implement Startup Probe

    In this example, the readiness probe checks for the file /etc/sudipta. The probe starts 10 seconds after the container starts. The probe runs every 10 seconds, and and if it fails 5 consecutive times, Kubernetes considers the container to have failed its startup and will restart the container.

    Combine Liveness And Startup Probe Together

    In this example, Liveness and Startup Probe are combined together to get the max benefit. Here Startup probe will check for the file /tmp/healthy every 10 seconds for 2 times. The first time it will fail because the file is not being created yet at the 10th second. The reason is "sleep 15" mentioned which is telling to go to sleep for 15 seconds and then create the file /tmp/healthy. So when the Startup probe will run for a second time, the file will be there and at this point in time, it will hand over the control to the Liveness probe. 

    Now after 30 seconds of sleep, I am deleting the file again. So at that point in time, the Liveness probe will fail and restart the container.

    This way you can combine these probes in your YAML file to get most benefit.

    Conclusion

    Kubernetes health checks, including liveness, readiness, and startup probes, play a critical role in building and maintaining reliable, high-performance containerized applications. Each of these probes serves a specific purpose, ensuring that your application runs smoothly, scales efficiently, and initializes gracefully.

    Implementing these health checks in your Kubernetes deployments is an essential best practice for building resilient, self-healing applications. By understanding the differences between liveness, readiness, and startup probes and how they work together, you can optimize your Kubernetes deployments for maximum reliability, scalability, and performance. Embrace the power of Kubernetes health checks and build robust, dependable applications for your users.

    In my next blog post, I will be doing deep dive into Pod Lifecycle. Please subscribe to my blog and Youtube channel – Technical Potpourri to get updates about all my upcoming blogs/videos.

    Disclaimer

    This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

    Comments

    How To Create Pods And Check Pod Health In Kubernetes

    How To Create Pods And Check Pod Health In Kubernetes

    Sudipta Deb

    Sudipta Deb

    Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

    Kubernetes is an open-source system for automating the deployment, scaling, and management of containerized applications. It was originally developed by Google and is now maintained by the Cloud Native Computing Foundation. 

    In this blog post today, I will share how to create Pods in Kubernetes using a YAML file and finally what are the options to check pod's health in Kubernetes.

    Read this blog post or watch the video below to understand How to create Pods & Check Pod Health in Kubernetes.

    The form you have selected does not exist.

    Content

    • Pod Fundamentals
    • Creating a Pod in Kubernetes
    • Working with Pods
    • What is YAML?
    • Create a Pod with YAML
    • Understanding Pod Health
    • Different Probes

    Pod Fundamentals

    In Kubernetes, a pod is a smallest and simplest unit in the object model for deploying applications. A pod represents a single instance of a running process in a cluster.

    A pod can contain one or more containers, and all containers in a pod run on the same node and share the same network namespace. This means that the containers can communicate with each other using localhost and share the same file system.

    Pods provide a way to group containers that should be deployed together on the same node. For example, you might deploy a web server and a database server as separate containers within the same pod, so that they can communicate with each other over localhost.

    Pods are created and managed by higher-level abstractions, such as deployments and replicasets, which provide features such as scaling, rolling updates, and self-healing. The Kubernetes control plane is responsible for ensuring that the desired state of the cluster, as specified by the higher-level abstractions, is maintained.

    Pods can also be exposed to the network using services, which provide network communication and load balancing for pods. Services can be used to expose pods to the network so that they can be accessed by external clients.

    In summary, pods in Kubernetes are the smallest and simplest unit in the object model for deploying applications. Pods represent a single instance of a running process in a cluster and provide a way to group containers that should be deployed together on the same node. Pods are created and managed by higher-level abstractions and can be exposed to the network using services.

    High Level Architecture

    I have prepared this below diagram to explain how Cluster, Node, Pod and Containers are connected. 

    Ways To Use Pods

    Pods in a Kubernetes Cluster are used in two main ways:

    • Pods With Single Container: This is mainly known as “one-container-per-Pod” model. It is the most common Kubernetes use case and here Kubernetes manages Pods rather than managing the container directly.
    • Pods With Multiple Container: Here couple of tightly-coupled containers who are supposed to share the resources are bundled in the same Pod. This is more of advanced use case.

    Creating a Pod In Kubernetes

    There are three ways to create Pods in Kubernetes.

    kubectl run [pod-name] --image [image-details]

    kubectl create -f [file-name]

    kubectl apply -f [file-name]

    The difference between create and apply is that -

    Create will create the Pod where Apply command will create as well as apply changes to the existing pod. You can always go with kubectl apply command, but if your initial pod is created with kubectl create command and now you want to use kubectl apply command on this existing pod, you can only do that if the initial pod was created with save-config like below -

    kubectl create -f [file_name] --save-config 

    Working With Pods

    To list down all pods, the command is

    kubectl get pods

    To expose a pod, the command is:

    kubectl port-forward [pod-name] 8080:80

    To delete a pod, the command is:

    kubectl delete pod [pod-name]

    To delete deployment that manages the pod, the command is:

    kubectl delete deployment [deployment-name]

     

    What is YAML?

    YAML is a human-readable data serialization format that is often used for configuration files. It stands for “YAML Ain’t Markup Language”. YAML files are commonly used in Kubernetes for defining and managing objects such as Pods, Deployments, Services, ConfigMaps, and Secrets.

    In Kubernetes, a Pod is the smallest deployable unit that can be created and managed. A Pod is a logical host for one or more containers, and it provides a shared network namespace and storage volumes. To create a Pod in Kubernetes using YAML, you would typically start by creating a YAML file that describes the desired state of the Pod.

    The YAML file for a Pod typically includes a few key sections, including:

    1. metadata: This section includes the name and labels of the Pod, as well as any annotations or other metadata.
    2. spec: This section includes the Pod’s specifications, such as the container images to run, the ports to expose, and any environment variables or volumes to use.

    Creating a Pod With YAML

    Here’s an example of a YAML file for a simple Pod with one container:

    With the above YAML file, we can run the below command to perform dry run and validate the YAML file.

    kubectl create -f my-pod.yaml –dry-run=client –validate=true

    If all looks good, we can just run the below command to create the pod in real.

    kubectl apply -f my-pod.yaml --save-config

    Apply changes to an existing Pod, the command is:

    kubectl apply -f my-pod.yaml

    Also, we can delete the pod by running the below command

    kubectl delete -f my-pod.yaml

    GitHub Repo

    I have shared all the codes in my Kubernetes Practice GitHub repo. Link: https://github.com/suddeb/Kubernetes-Practice

    Understanding Pod Health

    In Kubernetes, pod health can be checked using a variety of mechanisms, including:

    1. Liveness probes: These are used to check whether the container in a pod is still running. A liveness probe is a command or HTTP request that is executed periodically. If the command fails or the HTTP request returns an error, the container is considered to have failed and Kubernetes will restart it.

    2. Readiness probes: These are used to check whether the container in a pod is ready to start accepting traffic. A readiness probe is a command or HTTP request that is executed periodically. If the command succeeds or the HTTP request returns a success code, the container is considered ready to start accepting traffic.

    3. Startup probes: These are used to check whether the container in a pod has started up correctly. A startup probe is a command or HTTP request that is executed once after the container has started up. If the command fails or the HTTP request returns an error, Kubernetes will restart the container.

    These probes can be configured in the pod specification using the livenessProbe, readinessProbe, and startupProbe fields. Each probe can be customized to use a different command or HTTP request, and to specify the frequency and timeout for the probe.

    Kubernetes also supports other mechanisms for monitoring pod health, such as container logging, event monitoring, and custom metrics. However, liveness, readiness, and startup probes are the most common mechanisms used to monitor pod health in Kubernetes.

    Liveness Probe Configuration

    Below is an example of a liveness probe in a Kubernetes YAML file:

    The liveness probe is configured to check for a file on the server. The liveness probe will start 5 seconds after the container starts (initialDelaySeconds: 5), and will be repeated every 5 seconds (periodSeconds: 5). If the file is not found, Kubernetes will assume that the container has failed and will restart it.

    Readiness Probe Configuration

    Below is an example of a readiness probe in a Kubernetes YAML file:

    The readiness probe is configured to check for a file on the server. The readiness probe will start 5 seconds after the container starts (initialDelaySeconds: 5), and will be repeated every 5 seconds (periodSeconds: 5). If the file is not present, Kubernetes will consider the container to be ready to receive traffic. If failed, it will not be restarted.

    Startup Probe Configuration

    Below is an example of a startup probe in a Kubernetes YAML file:

    The startup probe is configured to check whether a file present on the server. The startup probe will start as soon as the container starts and will perform 5 checks (failureThreshold) with 5 seconds (periodSeconds) in between. So total 25 seconds to make that file available. The container will be restarted if the probe still doesn’t succeed after this time.

    Conclusion

    In this blog post, so far I have explored how to create pods in Kubernetes and check their health through probes. This blog post provides a comprehensive introduction to creating pods in Kubernetes and using probes to check their health, which is essential for ensuring the reliability and availability of containerized applications running on the platform.

    In my next blog post, I will be doing deep dive into different probes. Please subscribe to my blog and Youtube channel – Technical Potpourri to get updates about all my upcoming blogs/videos.

    Disclaimer

    This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

    Comments

    How To Bind Variables in Dynamic SOQL Query in Salesforce

    How To Bind Variables in Dynamic SOQL Query in Salesforce

    Sudipta Deb

    Sudipta Deb

    Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

    If you want to dynamically pass bind variables to a SOQL, with Spring 23 release, you will get more power. In this blog post, I will share some examples, but if you prefer to watch videos instead of reading the post, you can do that by watching the video below, which I have published on my Youtube Channel - Technical Potpourri. 

    The form you have selected does not exist.

    Introduction

    With the new Database.queryWithBinds, Database.getQueryLocatorWithBinds, and Database.countQueryWithBinds methods, the bind variables in the query are resolved from a Map parameter directly with a key rather than from Apex code variables. As a result, it’s not necessary for the variables to be in scope when the query is executed.

    Example 1

    As you can see in the above code, I am creating a map acctBinds and storing the account name in Key Value fashion. Now in the next line, where I am executing the soql query to fetch the account, I am using the Map name and Key name to dynamically bind the values to the query. This is very cool.

    But as you might have been thinking, why this map is having one value just? Having a map and not storing multiple values, doesn't make sense. So in my next example, I will show you how you can store multiple values in the map and then use the same map to dynamically bind values to the soql query.

    Example 2

    This time as you can see, I am storing multiple values in the map acctBinds and then using the same way to dynamically pass values to the soql query. This approach will help you to write more optimized code.

    Conclusion

    This is a very useful feature which developers can take advantage of now. But with power, comes responsibilities. So always recommended to follow the best practices by making your query optimized.

    As of now, we can use only below methods to implement dynamic binding.

    • Database.queryWithBinds
    • Database.getQueryLocatorWithBinds
    • Database.countQueryWithBinds

    Please read the official documentation here.

    Disclaimer

    This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

    Comments